I would like to extract the strings between multiple delimiters as below.
INPUT : src=`D:\GENEOS Program Files\App\FILE_DC_BP_JOBS_APACHE_DISPLAY_1190FA52.log`
From the above I need to extract only
Can you please help? I have tried with multiple regex options, but it also fetches additional strings.
Below is my attempt:
| eval log=replace(src,"([^\\\]+\\\)","")| eval Name=substr(log,1,len(log)-13)| eval Name=substr(Name,12,len(log))
req: need to display the strings between 3rd and 6th
Since your question mentioned regex, here's a solution using rex
... | rex field=src "\w+_\w+_\w+_(?<log>\w+_\w+_\w+)_" | ...