Getting Data In

How to delete events from an indexer?

mojgh94
New Member

Hi
I wanna delete Events from an indexer (x).
First of all, I added "delete_by_keyword" capability for admin then I wrote :

index=x suid=th:0 |eval index="x" |delete   

in the search& report app
I saw " error: you don't have capability to delete from index x"
How can I solve it?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

You need to grant admin the 'can_delete' role.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

You need to grant admin the 'can_delete' role.

---
If this reply helps you, Karma would be appreciated.

skoelpin
SplunkTrust
SplunkTrust

With great power, comes great responsibility!

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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