Knowledge Management

How do I remove a source?

yuanqi
New Member

I added a test file as source and couldn't figure out a way to remove it anymore. I even deleted the file and restarted Splunk. No luck.
Any suggestion?

Thanks!

Tags (1)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

You can either clean out the whole index, i.e. delete everything that you've already added to the index in question. To do this,

     stop splunk
     splunk clean eventdata -index your_index
     restart splunk

OR

you can pipe specific search results to 'delete', i.e. you will never see them again, but the operation won't free up any used disk space. This requires that you have admin privileges and add can_delete to your role.

See the documentation for further guidance.

hope this helps,

Kristian

View solution in original post

kristian_kolb
Ultra Champion

You can either clean out the whole index, i.e. delete everything that you've already added to the index in question. To do this,

     stop splunk
     splunk clean eventdata -index your_index
     restart splunk

OR

you can pipe specific search results to 'delete', i.e. you will never see them again, but the operation won't free up any used disk space. This requires that you have admin privileges and add can_delete to your role.

See the documentation for further guidance.

hope this helps,

Kristian

yuanqi
New Member

I tried the second approach and it works.
Thanks!

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...