Getting Data In

How to remove data if I have already removed the index?

Lindaiyu
Path Finder

Hello Splunkers,
I really need your help!
I have a large amount data within one index.
For remove the data, it should
1 Remove the data of this index with command

splunk clean eventdata -index xxx

2 Remove index

splunk remove -index xxx

However, I forgot the first step and do the second step directly.
Now when I run the first command, it show the message"index does not exist"
However, the data still in Splunk.
How could I remove the data after I have removed the index?

Could you please help me with that?
Thank you

Tags (2)
0 Karma

Buscatrufas
Path Finder

You must clean index with the service stopped.

teunlaan
Contributor

Did you remove de index from "indexes.conf" or deleted the directory on the server?

If you deleted it on the server, Your data is already gone

Lindaiyu
Path Finder

I remove with the CLI command "splunk remove index "

0 Karma

oficinasegurida
Engager

You'll find the index data in this location inside the folder where Splunk is installed:

/SplunkFolder/var/lib/splunk

Inside you'll find a folder for each index. Delete the one you want and you're done.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...