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!

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