Hi There:
I'm trying to return the list of access_users with 0 web hits from the web_hits table.
How can i adjust this query to return the list of users with no hits from the web_hits table?
Thanks in advance!
| inputlookup web_hits.csv
| lookup local=t access_users.csv user OUTPUT user as access_user
| search access_user="*"
| stats count as num_webhits by access_user
The stats command can't count what isn't there so you won't get a zero. This query returns those access_users that are not in the web_hits table.
| inputlookup local=t access_users.csv where NOT [| inputlookup web_hits.csv | fields user | rename user as access_user | format ]
Maybe these answers helps you:
More with site:community.splunk.com How to include counts with 0 events
r. Ismo