Splunk Search

log to see what searches users have run

gurinderbhatti
Path Finder

as an admin, can i find out what searches my users have run? time, syntax, etc.
is there an audit log or something related to that.

Tags (3)
0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try this:

| rest /services/search/jobs |rename custom.search as customSearch|search NOT author="splunk-system-user" | eval SearchString=if(isnotnull(customSearch),customSearch,eventSearch)| addtotals fieldname=duration *duration_secs| table author,x, Y,SearchString , earliestTime,latestTime,request.earliest_time, request.latest_time, eventCount,duration

dpapenbro
New Member

This is good, it gives some of what i need. How do i get the saved 'Name' associated with the search results.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Yes.

Take a look at the SoS app: http://apps.splunk.com/app/748/
In there go to the Search menu, and take a look around.

That's all based on pre-existing Splunk logs, so you can build your own searches off the app's suggestions.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...