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
Revered Legend

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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...