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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...