Getting Data In

How to delete an "source type" that is tied to indexed data. I accidentally added the source type and now want to correct it. Can help?

nitin82pandey
New Member

Hi, still learning Splunk and.....need to know..
How to delete an "source type" that is tied to indexed data. I accidentally added the source type and now want to correct it. I am using Ver. 5.0.4.

Can help?

Thanks!

Tags (1)
0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

You can handle this in a few ways:

1) Delete the data (must have the can_delete capability) using | delete
2) Alias the sourcetype - add this to props.conf
[old_sourcetype]
rename = new_sourcetype]

3) re-index the data with the correct sourcetype.

nitin82pandey
New Member

Thanks for asking.
I deleted the old sourcetype and re-indexed (and not stealing the credit....your answer helped me too.).

Thanks again!

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

Did this help you?

0 Karma

datienzalopez
Engager

Hi,

Try with this command in the search: sourcetype= | delete

Before you need to check that your user have permissions to do this.

Cheers,

0 Karma

nitin82pandey
New Member

Thanks....this was helpful.

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...