Splunk Search

Where does Splunk store the history of searches that were run?

pramit46
Contributor

I'm trying to find out if splunk stores the searches in a log file. I know |history shows the list of queries, but it does not show the file name. Can any let me know if there is any physical file that splunk stores the history in?

Tags (3)
1 Solution

Flynt
Splunk Employee
Splunk Employee

Try looking in $SPLUNK_HOME/etc/users/USERNAME/APPNAME/history/ for the history files for a user.

Where USERNAME is the name of the user you want to see files for and APPNAME is the app context the user searched in.

View solution in original post

treywebb
Explorer

This article also address querying for search history across users: http://answers.splunk.com/answers/151378/why-history-command-only-shows-my-searches-not-searches-run...

Flynt
Splunk Employee
Splunk Employee

Try looking in $SPLUNK_HOME/etc/users/USERNAME/APPNAME/history/ for the history files for a user.

Where USERNAME is the name of the user you want to see files for and APPNAME is the app context the user searched in.

Get Updates on the Splunk Community!

BORE at .conf25

Boss Of Regular Expression (BORE) was an interactive session run again this year at .conf25 by the brilliant ...

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...