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!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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