Exam SPLK-1003 All QuestionsBrowse all questions from this exam
Question 143

In inputs.conf, which stanza would mean Splunk was only reading one local file?

    Correct Answer: B

    In Splunk's inputs.conf file, the 'monitor' stanza is used to specify files or directories to be monitored. The correct syntax for monitoring a single file is 'monitor' followed by triple slashes and the absolute path to the file. Option B, '[monitor:///opt/log/crashlogs/Jan27crash.txt]', correctly conforms to this syntax, indicating Splunk is reading only one local file. 'monitor::' without the correct path structure or 'read://' are not valid for monitoring a single file in Splunk.

Discussion
MartinCaplanOption: B

Answer is B due to documentation

shesky17Option: B

File monitoring https://docs.splunk.com/Documentation/Splunk/9.2.1/Data/Monitorfilesanddirectorieswithinputs.conf