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
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...