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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

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 ...