Splunk Search

Scrub data from Splunk

qas
Engager

Splunk's scrub command scrub data in queries/report. What are the steps to permanently remove certain logs from Splunk? I imagine it'd require re-generating the index.

Tags (1)

dwaddle
SplunkTrust
SplunkTrust

You can take a search and | delete to delete the results of that search from the index. Your account needs the can_delete privilege. Strictly speaking, this does not remove it from the index so much as mark it as deleted. It remains in the on-disc bucket structure and could be located in there using traditional filesystem tools - but it would not be searchable in Splunk any more.

gkanapathy
Splunk Employee
Splunk Employee

To really clean, you would have to export the data you want to keep out of the index using command line exporttool or splunk export (possibly after doing | delete) then import back in with importtool or splunk import.

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