SPLK-1003 practice question 10 of 25
In inputs. conf, which stanza would mean Splunk was only reading one local file?
Full set: 188 questionsThe [monitor:///path/to/file] stanza in inputs.conf configures a Splunk forwarder or instance to continuously monitor a single file for new data. The triple slash (///) indicates an absolute path on the local host. This syntax specifically targets one file, Jan27crash.txt, for data input, fulfilling the requirement of reading only one local file. While option B is also syntactically valid (monitor:: is an alternative to monitor:///), option D represents the more common and canonical syntax for this purpose.
A. [read://...]: This is not a valid stanza type for data inputs in Splunk's inputs.conf file.
B. [monitor::/...]: While syntactically valid and functionally identical to option D, it is a less common notation for Unix/Linux absolute paths. Option D is the standard representation.
C. [monitor:///opt/log/]: This stanza monitors an entire directory, opt/log/, and all the files within it, not just a single file.
Splunk Enterprise Documentation, Getting Data In, "Monitor files and directories with inputs.conf". This section details the monitor stanza syntax, showing [monitor:///] as the standard for monitoring specific files or directories. It clarifies that /// specifies a local, absolute path.
Splunk Enterprise Documentation, Admin Manual, "inputs.conf". The specification for inputs.conf confirms that [monitor://] is the correct stanza and that [monitor::] is a valid alternative to [monitor:///].
Keep practicing
Take the free SPLK-1003 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SPLK-1003 practice questions
- Question 1Which of the following indexes come pre-configured with Splunk Enterprise? (select all th…
- Question 2Which setting allows the configuration of Splunk to allow events to span over more than o…
- Question 3Search heads in a company's European offices need to be able to search data in their New …
- Question 4When would the following command be used?
- Question 5Which of the following are required when defining an index in indexes. conf? (select all …
- Question 6What action is required to enable forwarder management in Splunk Web?
