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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...