All Apps and Add-ons

Hashing method for initCrc

RicoSuave
Builder

What is the method that splunkd uses to hash the first 256 bytes of a file that is being monitored?

1 Solution

yannK
Splunk Employee
Splunk Employee

a bit of magic.
http://en.wikipedia.org/wiki/Computation_of_CRC

Remarks about CRC options.

  • You can add the source to the calculation (crcSalt= with SOURCE in caps in inputs.conf)
  • and since Splunk 5.0 you can setup a longer CRC (initCrcLength in inputs.conf)

View solution in original post

yannK
Splunk Employee
Splunk Employee

a bit of magic.
http://en.wikipedia.org/wiki/Computation_of_CRC

Remarks about CRC options.

  • You can add the source to the calculation (crcSalt= with SOURCE in caps in inputs.conf)
  • and since Splunk 5.0 you can setup a longer CRC (initCrcLength in inputs.conf)

RicoSuave
Builder

Really i'm just curious.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...