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!

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 ...