Monitoring Splunk

If you change the index attribute of monitor stanza in inputs.conf, Will log re-capture be done?

takashiscsk
New Member

If you change the index attribute of monitor stanza in inputs.conf,
Will log re-capture be done?

For example, if you change it as below in inputs.conf

Change before

[monitor: ///work/file.txt]
index = test 0612
sourcetype = sample

After change

[monitor: ///work/file.txt]
index = test 0613
sourcetype = sample

Tags (1)
0 Karma

Ayn
Legend

No, because Splunk instances (including forwarders) use their internal _fishbucket index for keeping track of positions in files they're indexing. You'd have to clean that out one way or another to make Splunk reindex data.

0 Karma

ddrillic
Ultra Champion

Nope, in cases like these, I sometimes drop the forwarder and re-install it. Starting fresh ; -)

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

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

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