Hi there
Just wondering if it's possible to delete/remove searches from your search history list.
Looking to manage/tidy up the search history panel
Hi @SeoaneR
Just to clarify, you're looking for delete search history in the "Search History" dropdown on the front page of the search view? If so please see my other response, and be mindful of other responses in this thread which point to the "delete" command which may delete data in your indexes!!
Ultimately:
Try looking in $SPLUNK_HOME/etc/users/USERNAME/APPNAME/history/ for the history files for a user, typically you'll want to check in the search app if this is the default for the user.
Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards
Will
Hi Will
Thanks for coming back to me .
I followed an instruction from another use about going into /opt/splunk/etc/users/admin/search/history
I then opened a .csv file under my name with vim and started to delete entries.
This has reduced the amount of searches from the "Search History" window pane in the User Interface of splunk.
see this answer https://community.splunk.com/t5/Splunk-Search/How-to-clear-search-history/m-p/392454/highlight/true
If you need to delete specific events from your Splunk data, you can use the delete command in your search query. For example:
index=web_app status=505 | delete
This will remove events matching the specified criteria
Removing data by using delete command in Splunk SPL Query | Splunk
That was very useful , many thanks
It has shrunk my search history considerable and beginning to look more manageable.
@SeoaneR Great! I hope this is helpful for you. If so, please accept the solution.
Hi @SeoaneR
Try looking in $SPLUNK_HOME/etc/users/USERNAME/APPNAME/history/ for the history files for a user, typically you'll want to check in the search app if this is the default for the user.
Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards
Will