Getting Data In

Reindex data from a forwarder

nicholasjohn
New Member

We have changed the configuration (props.conf) on a Universal Forwarder so that it will now use the correct sourcetype for a couple of log files.
How do I go about getting
a) the forwarder to "resend" the events in those files with the new correct source type
b) getting the indexer to re-index those events.

Alternatively, is there a way to change the source type for those events at the indexer?

0 Karma

yannK
Splunk Employee
Splunk Employee

take a look at this answer for techniques to force a reindexing.
http://splunk-base.splunk.com/answers/72562/how-to-reindex-data-from-a-forwarder

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

In reverse order...

c) You cannot modify the data once it is indexed.
b) The indexer will happily re-index duplicates, nothing to do there. However, if you want to get rid of the old events you can either empty the corresponding index (and delete every other event in that index along the way!) or mark them as deleted with the delete command (won't reclaim space).
a) You need to empty the fish bucket on the forwarder to get it to re-read files that have already been read. It'll then re-read everything on the forwarder, make sure you don't get unwanted duplicates from other sources.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...