Splunk Search

Compare items in lookup tables against auth logs

th3_ugm4n
New Member

Hi all! Pretty new to splunk so just seeing if this is even possible.

I have 2 lookups I have created, one that is users who are in our privileged access AD group (admins) and the other that is machines that are in the same group.

What I am trying to do is see who from the USER lookup has logged into which machine in the MACHINE lookup, by using the auth logs that are pumped into splunk.

I am trying the search below but I don't seem to be getting anywhere with it

 

index=auth EventCodeDescription="An account was successfully logged on" [|inputlookup users.csv][| inputlookup machines.csv]

 

I've also tried with the below but also no luck

 

index=auth EventCodeDescription="An account was successfully logged on" user=inputlookup users.csv src=inputlookup machines.csv

 

Any help from the community would be great!

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

DO the field names in the .csv's match the field names returned by the search e.g. if the search returns username and the csv lookup returns userid, you would need to rename the field in the inputlookup subsearch so that it matches.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...