Thanks. I've tried a very similar permutation today, but this brings back the problem I had at another point: I get about a third more results than I should, and they're duplicates (one uppercase, one lowercase). If I cast the host field to upper or lowercase before the stats max command, I get the correct number of hosts but around 10% then erroneously return 0 events. E.g. | tstats count where [ | inputlookup file.csv ],index=* by host
| append [
| inputlookup file.csv
| eval count=0
]
| eval host=upper(host)
| dedup host
| stats max(count) as count by host Expected result: host count
HOST1 12345
HOST2 67890
HOST3 24680 Actual result: host count
HOST1 0
HOST2 67890
HOST3 24680 But if I search for HOST1 or host1 manually, there are many thousands of events in the same time period. Since field values are supposed to be case-insensitive (IIRC), I'm stumped as to why case is relevant here. It's trivial to do the case-casting in the actual lookup file if appropriate, but I think there's one more piece missing somewhere.
... View more