Splunk Search

How to search user search history by keyword

kteng2024
Path Finder

Hi there,

Is there any way to find out who are the users queried for a particular word in Splunk? For example, i would like to find out all the users who queried for a word called "apple" or whose queries contain a word "apple" .

Thank you

0 Karma

lguinn2
Legend

If you are able to see the _audit index (usually that means that you have admin priviledges), you can search the content of user searches.

Something like

index=_audit sourcetype=audittrail action=search user!="splunk-system-user" "search=" YOURWORDHERE

should work.

Just be aware that the search you just ran will also show up in the list! 😄

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Yes, it is in the internal audit index.

index=_audit action=search search=*apple* | table _time,user,search

0 Karma

kteng2024
Path Finder

Thank you for the reply.. but for some the searches i don't see the userID .

0 Karma

skoelpin
SplunkTrust
SplunkTrust

There should be a field called user, is it showing up as a blank column?

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...