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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...