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!

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 ...