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

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

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...