Getting Data In

Will log files be re-indexed if I change inputs.conf?

Derek
Path Finder

Hi!

Probably a simple question, but I have a forwarder that is mointoring an entire directory all with all the files being set with a common sourcetype. There are several formats/sources of files in the directory and I want to change my inputs.conf to break them out into different sourcetypes so that I can get more granular in some of my field extractions and searches.

I know that Splunk has many built-in mechanisms that will keep it from re-indexing the same file and I want to make sure that's done at the raw file level and not based on any meta-data such as sourcetype etc.

Thanks!

Tags (1)
1 Solution

southeringtonp
Motivator

Assuming you are working with monitor inputs, the files would should not be reindexed.

Splunk's detection of duplicate files is based on CRC checksums. The exception would be if you have configured a crcSalt, which will let you include a fixed string or the value of source as part of the comparison. Other metadata, including sourcetype, would not be a factor in detecting duplicates.

More information on the CRC calculation:
     http://www.splunk.com/base/Documentation/latest/Admin/Howlogfilerotationishandled

View solution in original post

southeringtonp
Motivator

Assuming you are working with monitor inputs, the files would should not be reindexed.

Splunk's detection of duplicate files is based on CRC checksums. The exception would be if you have configured a crcSalt, which will let you include a fixed string or the value of source as part of the comparison. Other metadata, including sourcetype, would not be a factor in detecting duplicates.

More information on the CRC calculation:
     http://www.splunk.com/base/Documentation/latest/Admin/Howlogfilerotationishandled

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...