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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

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