ExamGecko
Question list
Search
Search

List of questions

Search

Question 123 - SPLK-2002 discussion

Report
Export

When troubleshooting a situation where some files within a directory are not being indexed, the ignored files are discovered to have long headers. What is the first thing that should be added to inputs.conf?

A.

Decrease the value of initCrcLength.

Answers
A.

Decrease the value of initCrcLength.

B.

Add a crcSalt=<string> attribute.

Answers
B.

Add a crcSalt=<string> attribute.

C.

Increase the value of initCrcLength.

Answers
C.

Increase the value of initCrcLength.

D.

Add a crcSalt=<SOURCE> attribute.

Answers
D.

Add a crcSalt=<SOURCE> attribute.

Suggested answer: C

Explanation:

inputs.conf is a configuration file that contains settings for various types of data inputs, such as files, directories, network ports, scripts, and so on1.

initCrcLength is a setting that specifies the number of characters that the input uses to calculate the CRC (cyclic redundancy check) of a file1.The CRC is a value that uniquely identifies a file based on its content2.

crcSalt is another setting that adds a string to the CRC calculation to force the input to consume files that have matching CRCs1.This can be useful when files have identical headers or when files are renamed or rolled over2.

When troubleshooting a situation where some files within a directory are not being indexed, the ignored files are discovered to have long headers, the first thing that should be added to inputs.conf is to increase the value of initCrcLength.This is because by default, the input only performs CRC checks against the first 256 bytes of a file, which means that files with long headers may have matching CRCs and be skipped by the input2.By increasing the value of initCrcLength, the input can use more characters from the file to calculate the CRC, which can reduce the chances of CRC collisions and ensure that different files are indexed3.

Option C is the correct answer because it reflects the best practice for troubleshooting this situation. Option A is incorrect because decreasing the value of initCrcLength would make the CRC calculation less reliable and more prone to collisions. Option B is incorrect because adding a crcSalt with a static string would not help differentiate files with long headers, as they would still have matching CRCs.Option D is incorrect because adding a crcSalt with the <SOURCE> attribute would add the full directory path to the CRC calculation, which would not help if the files are in the same directory2.

1:inputs.conf - Splunk Documentation2:How the Splunk platform handles log file rotation3:Solved: Configure CRC salt - Splunk Community

asked 13/11/2024
Geoffrey Vd Molen
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first