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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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