Getting Data In

what is the difference between crcSalt and CHECK_METHOD=modtime?

xiyangyang
Path Finder

I know both of the two settings can help me to index the whole file,
What the difference between the two?
Is there some thing one can do but the other cannot?

0 Karma

HiroshiSatoh
Champion

When file update time is changed, set ”CHECK_METHOD=modtime” when capturing unconditionally.
Normally it is incremental acquisition(CHECK_METHOD= endpoint_md5), but if the same "checksum" file exists, set crcSalt and check "checksum" using PATH.

0 Karma

xiyangyang
Path Finder

佐藤さん
CHECK_METHOD=modtimeを設定した場合、毎回出力が同じのファイルを出力度に取得できるでしょうか?
crcSaltの場合、ファイルの中身が同じであれば、timestampだけ変更した場合、ファイルの取得できない認識です。

0 Karma

HiroshiSatoh
Champion

こんにちは。

CHECK_METHOD=modtimeを設定した場合はファイルの更新時刻が更新されれば取得します。ただし、ファイル全件取得で、差分だけ取得するわけではありません。

>crcSaltの場合、ファイルの中身が同じであれば、timestampだけ変更した場合、ファイルの取得できない認識です。
⇒crcSaltは目的が違うので認識が少し違います。ファイルの中身が同じでもファイルパスが違えば取得します。同じヘッダファイルを持つログ等、本来は違うファイルなのにchecksumが同じになってしまうような場合にファイルパスをchecksumに含むことで両方のログを取得できるようにcrcSaltは使うものです。

※平日の業務時間内であればSPSSで質問して頂いたほうが回答は早いと思います。

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

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