Getting Data In

How to remove sources from disk via CLI?

Benlavender
Explorer

Hello,

We’re looking to remove data from one of our indexes, preferably using the clean operator from the CLI.

We have the some sources like “Perfmon:CPU Load” and “WinEventLog:System” – What would the correct clean syntax be to remove these sources from disk in the CLI be please?

Thanks

Tags (3)
0 Karma

yannK
Splunk Employee
Splunk Employee

There is no way to remove selectively data from a bucket/index.
you can only hide it using the "|delete" command
or delete all data with the "clean" command

Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...