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!

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