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!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...