Exam SPLK-2002 Topic 6 Question 30 Discussion
Actual exam question for Splunk's SPLK-2002 exam
Question #: 30
Topic #: 6
Question #: 30
Topic #: 6
Splunk Enterprise performs a cyclic redundancy check (CRC) against the first and last bytes to prevent the same file from being re-indexed if it is rotated or renamed. What is the number of bytes sampled by default?
Suggested Answer: C Vote an answer
Splunk Enterprise performs a CRC check against the first and last 256 bytes of a file by default, as stated in the inputs.conf specification. This is controlled by the initCrcLength parameter, which can be changed if needed. The CRC check helps Splunk Enterprise to avoid re-indexing the same file twice, even if it is renamed or rotated, as long as the content does not change. However, this also means that Splunk Enterprise might miss some files that have the same CRC but different content, especially if they have identical headers. To avoid this, the crcSalt parameter can be used to add some extra information to the CRC calculation, such as the full file path or a custom string. This ensures that each file has a unique CRC and is indexed by Splunk Enterprise.
You can read more about crcSalt and initCrcLength in the How log file rotation is handled documentation.
You can read more about crcSalt and initCrcLength in the How log file rotation is handled documentation.
by Diana at Jan 01, 2025, 11:59 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).