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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...