Splunk Search

How to clear search history?

louisjannett
Engager

Hi everyone,
I have a short question in regard to my search history. How can I clear the entire search history of a specific user or of all users?

The suggested file in this post (https://answers.splunk.com/answers/6159/how-do-i-clear-my-search-history.html?utm_source=typeahead&u...) does not exist in my log directory. In addition, the searchhistory.log file in var/log/splunk is empty.

Thanks in advance!

1 Solution

horsefez
Motivator

Hi @louisjannett,

I bet you are searching in the wrong directory.
Each user has it's own private search history.

Try finding it at the following path

/opt/splunk/etc/users/<nameofuser>/search/

Hope this helps!

View solution in original post

horsefez
Motivator

Hi @louisjannett,

I bet you are searching in the wrong directory.
Each user has it's own private search history.

Try finding it at the following path

/opt/splunk/etc/users/<nameofuser>/search/

Hope this helps!

louisjannett
Engager

Thanks! I didn't look for that directory.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...