SPLK-1003 Exam QuestionsBrowse all questions from this exam

SPLK-1003 Exam - Question 143


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

Show Answer
Correct Answer: BC

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

2 comments
Sign in to comment
MartinCaplanOption: B
Mar 30, 2024

Answer is B due to documentation

shesky17Option: B
May 11, 2024

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