Splunk Enterprise

index duplication

code_nomad
New Member

is there any way to delete/remove indexed data for a particular time range ? thanks in advance.

Tags (1)
0 Karma
1 Solution

MHibbin
Influencer

You can filter you indexes to the events you wish to remove in the standard Splunk search view (i.e. flashtimeline). For example:

 <your filtering search> | delete

As this is "risky", the user will need to be assigned the "can_delete" role.

If it is in specific indexes, and you wish to remove that WHOLE index, you can use the CLI tool, "clean", to delete data from that Index. For example

./splunk clean eventdata ...

These methods should be used with extreme caution as the effects can not be reversed. I would recommend reviewing your filtering search carefully, and also reading the documenatation on this subject first... it should not be taken lightly.

http://docs.splunk.com/Documentation/Splunk/5.0/Indexer/RemovedatafromSplunk

View solution in original post

0 Karma

MHibbin
Influencer

You can filter you indexes to the events you wish to remove in the standard Splunk search view (i.e. flashtimeline). For example:

 <your filtering search> | delete

As this is "risky", the user will need to be assigned the "can_delete" role.

If it is in specific indexes, and you wish to remove that WHOLE index, you can use the CLI tool, "clean", to delete data from that Index. For example

./splunk clean eventdata ...

These methods should be used with extreme caution as the effects can not be reversed. I would recommend reviewing your filtering search carefully, and also reading the documenatation on this subject first... it should not be taken lightly.

http://docs.splunk.com/Documentation/Splunk/5.0/Indexer/RemovedatafromSplunk

0 Karma

piebob
Splunk Employee
Splunk Employee

(i accepted your answer, mhibbin :))

0 Karma

MHibbin
Influencer

... it's the empty tick next to the answer

MHibbin
Influencer

no problem... if this answers your question, can you please mark it as accepted to "close" it off.

code_nomad
New Member

thank you !!

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

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

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