Splunk Search

File will not be read, seekptr checksum did not match. Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source.

santosh_hb
Explorer

I am getting the following error due to which, the log file is not getting indexed daily.

Log file name is like: db_20180419.log, db_20180420.log...and so-on (Log rotation file)

File will not be read, seekptr checksum did not match (file=C:.....\test_date.log). Last time we saw this initcrc, filename was different. You may wish to use larger initCrcLen for this sourcetype, or a CRC salt on this source. Consult the documentation or file a support case online at http://www.splunk.com/page/submit_issue for more info.

So, my question is: do I need to set both "initCrcLen" and "crcSalt" parameters or I can just set "initCrcLen".
In case, I need to set "crcSalt", how to set it for source=C:\logs\db_*.log
Could you help me with an sample for the above source.
regards, Santosh

Tags (1)
0 Karma

santosh_hb
Explorer

Thanks guys..Its working.

0 Karma

xpac
SplunkTrust
SplunkTrust

Then please upvote/accept the answer. 🙂

0 Karma

xpac
SplunkTrust
SplunkTrust

You could either go with crcSalt or initCrcLen.
As your filenames keep changing, the easiest would be a inputs.conf like this:

[monitor:yourfilename]
crcSalt = <SOURCE>

It will just use the (always different) filename as a salt, so the checksum will differ for each new file - that should solve your problem.
If you had the same issue, but the filename would always be the same, you would have to raise the initCrcLen up to the point where the file is actually different.

FrankVl
Ultra Champion

You might want to put that inputs.conf example as code, now the <SOURCE> setting for the crcSalt dissapears 🙂

xpac
SplunkTrust
SplunkTrust

Thanks, I missed that and then it ate my precious config. 😉

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...