Splunk Search

testing for the occurrence of a user

a212830
Champion

Hi,

I need to check to see if a list of users (150+) have logged in recently. The data comes in via syslog, and I've been able to extract the usernames from the syslog. I created a lookup file that contains just the usernames. How can I validate that these people have logged in? I can run a search that extracts the syslog messages, but how do I validate it against the lookup table? Or am I going about this all wrong?

Tags (1)
0 Karma

HiroshiSatoh
Champion

But what about such a feeling?

ex.
(USER_MST.CSV)
USER
USER_A
USER_B

USER_C
USER_D
USER_E

(search)
|inputlookup USER_MST.CSV|join type=outer USER [search index=*|stats count by USER]

(results)

USER count

USER_A 10
USER_B

USER_C 1
USER_D 5
USER_E

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...