Thanks but I must be doing something wrong. I've added a lookup file with the format:
host, source
host1, /var/log*
host2, /var/log*
I've done your search:
| tstats count as Counts where index=[my index] source="/var/log*" by host
| inputlookup append=t May_Linux_Hosts.csv
| rex mode=sed field=source "s/\/\w+/\/*/3"
| stats values(Counts) as count by source host
| fillnull count
| where count=0
And the output I get is:
source, host, count
/var/log/, host1,0
/var/log/, host2,0
.
.
.
So it's like it's not treating the * as a wildcard. Any idea what I'm doing wrong?
... View more