Installation

Observations/Question Recently Installed Splunk

osamamansoor
New Member

Hi All,

i just recently installed splunk enterprise and having following questions.

1.How can i delete previously indexed hosts
2.How can i edited/deleted sources type for particular hosts

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Indexed data isn't for changing, so you cannot fully delete data based on some host, or change the sourcetype value for some host.

You can empty an entire index, run this while splunk is stopped:$SPLUNK_HOME/bin/splunk clean eventdata -index yourindex
You can mark individual events as deleted without cleaning up space, append the delete command to a search to mark the results as deleted - your user needs the can_delete role to be allowed to.

To alleviate the impact of wrong indexing in the future, consider creating a sandbox index to first send data into, confirm its correct, and only then send data into your actual indexes.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...