I am using inputlookup in a search query and search key in table (test.csv) has wildcard as shown below. FILENAME EMAIL abc*
[email protected] xyz*
[email protected] The query should match fname in log file with FILENAME from lookup table and if there's a match then result should be something like: FILENAME EMAIL cnt abc*
[email protected] 2 xyz*
[email protected] 0 Instead my query output is: fname EMAIL count abc*
[email protected] 0 abc123.txt 1 abc.dat 1 xyz*
[email protected] 0 This is my query: index=* host=* source="/bustools/*" | rex max_match=100 "\d+\d+\s(?<ts>.*)\s(?<directory>\/.*)\/(?<fname>.*)" | dedup fname | search [ | inputlookup test.csv | rename FILENAME AS fname | fields fname] | stats count as occur by fname | append [ inputlookup test.csv | rename FILENAME AS fname | fields fname] | fillnull occur | stats sum(occur) as cnt BY fname | join type=left fname [ | inputlookup test.csv | rename FILENAME AS fname] | table fname EMAIL cnt Any help would be appreciated.
... View more