Splunk Search

How can I find users logged on some PCs if PCs list is a result of a different search?

AlexeySh
Communicator

Hello,

I'm trying to create a list of users who use a particular software, lest say Notepad 7.6.3. I can easily find the PCs where software is installed:

index=my_software_list software_name=“Notepad 7.6.3” | table dns_name

Now I’m thinking to simply use Windows Security logs and find user who was connected to these PCs. Something like:

index=windows_security EventCode=4624 dns_name=??? | table user

The question is how can I put all PCs found in my previous search to this query? Should I use join left? Should I export the results of the first search to a lookup and then perform inputllokup in a separate one? Any other idea?

Thanks for the help.

Regards,
Alex.

0 Karma
1 Solution

somesoni2
Revered Legend

Give this a try

index=windows_security EventCode=4624 [search index=my_software_list software_name="Notepad 7.6.3" |stats count by dns_name |  table dns_name] | table user

View solution in original post

somesoni2
Revered Legend

Give this a try

index=windows_security EventCode=4624 [search index=my_software_list software_name="Notepad 7.6.3" |stats count by dns_name |  table dns_name] | table user

AlexeySh
Communicator

Gorgeous!

Thanks for the help.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...