Getting Data In

How to re-index data in to splunk with different source type?

vikram1583
Explorer

I am using universal forwarder I indexed data into Splunk with a source type now I want to re-index same data with different source type but I am getting current data only how can I get old data ?

0 Karma

bandit
Motivator

One option is to update your inputs.conf with the new sourcetype name under the monitor stanza and also add the following and restart the forwarder
crcSalt = reindex

Really any unique value for the crcSalt will work
You should get all data reindexed for that monitor rule

One other option would be to remove the fish bucket on the forwarder and restart however that would reindex all sourcetypes on the host

0 Karma

Vijeta
Influencer

@vikram1583 you can use collect command to get data from old sourcetype to new sourcetype using a time_range where the old data lies

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...