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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...