Skip to content

Commit 0013c5e

Browse files
authored
Update savedsearches.conf
1 parent 4975b92 commit 0013c5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

default/savedsearches.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7801,11 +7801,11 @@ search = index=_audit `searchheadhosts` search=* lookup OR outputlookup OR inpu
78017801
``` remove append= local= update= key_field= as that will confuse the regexes to extract the lookup file name ```\
78027802
| rex field=search mode=sed "s/(append|local|update|key_field)\s*=\s*\S+\s+/ /g"\
78037803
``` 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'\|\]]+)" \
78057805
``` deal with | from:inputlookup: "lookupfile.csv" ``` \
78067806
| rex max_match=20 field=search "(?ms)\|\s*from\s+(?P<operation>inputlookup):\s*\"?(?P<lookup_file2>[^\"\s'\|\]]+)"\
78077807
``` 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'\|\]]+)" \
78097809
| rex max_match=20 field=search "(?ms)\s*\[\s*from\s+(?P<operation>inputlookup):\s*\"?(?P<lookup_file4>[^\"\s'\|\]]+)"\
78107810
``` 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 ``` \
78117811
| rex max_match=20 field=search "(?ms)(^\s*|\s*\|\s*)(?P<operation2>((input|output)?lookup|apply))\s+\"?(?P<lookup_file5>[^\"\s'\|\]]+)" \

0 commit comments

Comments
 (0)