I'm trying to clear up a log entry within an ELK stack using grok. I have the following text to still tackle:
/mnt/drive/fish/Cap Camel/Indigo - [Fair Game].jpg (34523) [2,0,34523,0,0,2,2]
/mnt/drive/fish/Cap Camel/Indigo - [Fair Game].jpg
/mnt/drive/fish/Cap Camel (1358)/Indigo - [Fair Game].jpg
I want the path but it contains spaces, caps and special characters etc?
Thanks
^(?<file>(?:/[^/]+)+\.jpg)^(?<file>.*?)\s*\(, if the file path goes until whitespaces +(right after.