Getting Data In

Is it possible to add a crcSalt value that is not a static string or the source information of the file?

JWBailey
Communicator

Is it possible to add a crcSalt value that is not a static string or the source information of the file?

I have a log that is overwritten each day that is often identical to the previous days and therefore is sometimes not indexed. crcSalt= doesn't work because the file is written in the same location each day. A date / time stamp is what i am looking for.

Thanks.

somesoni2
Revered Legend

If your log files are getting overwritten every day OR every time there is an update and will get created if file is not there, then you can use [batch:// input instead of [monitor://, along with move_policy=sink_hole. The batch input with move_policy will delete the files and will not keep track of indexed files.

DavidHourani
Super Champion

smart ! thank you, ill try this out!

0 Karma

DavidHourani
Super Champion

Did you find an answer to that ?

0 Karma

JWBailey
Communicator

I did not find a direct solution to my problem. Instead I redesigned my application to include the date and timestamp in the file name, this ensured that the filename was always different and in turn guaranteed that Splunk would read the file using crcSalt=SOURCE.

Hope this helps...

0 Karma

DavidHourani
Super Champion

so you didn't find a crcsalr = or something ? 😞

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Philosophical question: If you overwrite a logfile with identical content, did you really overwrite it? 😄
More serious question: Why do you need data you already have re-indexed?

You could have a scripted input call a oneshot once per day, Splunk should read that no matter what.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

It'd be best if your log had a timestamp somewhere near the start of the file.

0 Karma

JWBailey
Communicator

I cannot rely on what is inside the log file because it is often identical to the file it is replacing.

Is SOURCE the only dynamic input the crcSalt setting will accept?

Is there another way altogether to force splunk to index a new file no matter what splunk thinks it should do?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...