Getting Data In

crcSalt = SOURCE not working as expected

snickered
Path Finder

On my universal forwarder inputs.conf I have: crcSalt = for C:\TEMP. When I add a file it's consumed and sent to my indexer. Then I remove the file from C:\TEMP, restart the universal forwarder and re-add the same file (with the same filename) to C:\TEMP. When I do, it's not consumed again. Isn't crcSalt supposed to allow this?

It seems like crcSalt is almost working because when I simply change the filename and add it to C:\TEMP the file is indexed again.

Am I mistaken? Shouldn't crcSalt = allow me to index the exact same file with the same filename more than once?

In my inputs.conf I have SOURCE capitalized. For some reason I can't capitalize in the question.

Tags (1)
0 Karma
1 Solution

Drainy
Champion

You're slightly misunderstanding the purpose of the crcSalt, all it does is add the file path to the salt used to generate the CRC... which if its the same name and same folder will be identical!

If you're looking to reindex a file thats already been indexed you need to clear out the fishbucket by running the following command from the forwarder $SPLUNK_HOME/bin

./splunk clean all

Beware though, this will make the forwarder reindex EVERYTHING its already read so be careful. Also it will reset the password to changeme if you had changed it.

View solution in original post

Drainy
Champion

You're slightly misunderstanding the purpose of the crcSalt, all it does is add the file path to the salt used to generate the CRC... which if its the same name and same folder will be identical!

If you're looking to reindex a file thats already been indexed you need to clear out the fishbucket by running the following command from the forwarder $SPLUNK_HOME/bin

./splunk clean all

Beware though, this will make the forwarder reindex EVERYTHING its already read so be careful. Also it will reset the password to changeme if you had changed it.

yannK
Splunk Employee
Splunk Employee
0 Karma

snickered
Path Finder

Ah! Not sure how I missed that in the documentation. Thanks.

0 Karma
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, ...