You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: default/savedsearches.conf
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7801,11 +7801,11 @@ search = index=_audit `searchheadhosts` search=* lookup OR outputlookup OR inpu
7801
7801
``` remove append= local= update= key_field= as that will confuse the regexes to extract the lookup file name ```\
7802
7802
| rex field=search mode=sed "s/(append|local|update|key_field)\s*=\s*\S+\s+/ /g"\
7803
7803
``` deal with standard | inputlookup, | outputlookup or | lookup ``` \
7804
-
| rex max_match=20 field=search "(?ms)\|\s*(?P<operation>((input|output)?lookup|apply))\s+\"?(?P<lookup_file>[^\"\s'\|\]]+)"
7804
+
| rex max_match=20 field=search "(?ms)\|\s*(?P<operation>((input|output)?lookup|apply))\s+\"?(?P<lookup_file>[^\"\s'\|\]]+)" \
7805
7805
``` deal with | from:inputlookup: "lookupfile.csv" ``` \
7806
7806
| rex max_match=20 field=search "(?ms)\|\s*from\s+(?P<operation>inputlookup):\s*\"?(?P<lookup_file2>[^\"\s'\|\]]+)"\
7807
7807
``` deal with subsearches with [ inputlookup ] or [ outputlookup ] ``` \
7808
-
| rex max_match=20 field=search "(?ms)\s*\[\s*(?P<operation>((input|output)?lookup)|apply)\s+\"?(?P<lookup_file3>[^\"\s'\|\]]+)"
7808
+
| rex max_match=20 field=search "(?ms)\s*\[\s*(?P<operation>((input|output)?lookup)|apply)\s+\"?(?P<lookup_file3>[^\"\s'\|\]]+)" \
7809
7809
| rex max_match=20 field=search "(?ms)\s*\[\s*from\s+(?P<operation>inputlookup):\s*\"?(?P<lookup_file4>[^\"\s'\|\]]+)"\
7810
7810
``` this one occurs in sub-searches for example search=' inputlookup filename.csv' could work in a pure-subsearch only, otherwise it's missing the | symbol at the start ``` \
7811
7811
| rex max_match=20 field=search "(?ms)(^\s*|\s*\|\s*)(?P<operation2>((input|output)?lookup|apply))\s+\"?(?P<lookup_file5>[^\"\s'\|\]]+)" \
0 commit comments