exam questions

Exam SPLK-1005 All Questions

View all questions & answers for the SPLK-1005 exam

Exam SPLK-1005 topic 1 question 4 discussion

Actual exam question from Splunk's SPLK-1005
Question #: 4
Topic #: 1
[All SPLK-1005 Questions]

What syntax is required in inputs.conf to ingest data from files or directories?

  • A. A monitor stanza, sourcetype, and index is required to ingest data.
  • B. A monitor stanza, sourcetype, index, and host is required to ingest data.
  • C. A monitor stanza and sourcetype is required to ingest data.
  • D. Only the monitor stanza is required to ingest data.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BOSS2107
1 week, 1 day ago
Selected Answer: B
I would go for B. I agree with @cagdaskarabag that monitor, source type and index are required, but we have to remember about host. Sourcetype, index and host are part of global settings and when omitted, the default values will be inserted (except sourcetype, but there are no such option in here) Why not D - in monitor stanza you will configure path as required. But without the rest, data will not be ingested. To make this possible, you will have to pass at least default values.
upvoted 1 times
...
loopfastener
1 month ago
Selected Answer: D
D is correct. # The following configuration reads all the files in the directory /var/log. [monitor:///var/log] Nothing else is required.
upvoted 1 times
...
cagdaskarabag
1 month, 2 weeks ago
Selected Answer: A
A. A monitor stanza, sourcetype, and index is required to ingest data. In inputs.conf, the syntax for ingesting data from files or directories requires at least the following: Monitor stanza: Specifies the file or directory to monitor, e.g., [monitor:///path/to/file_or_directory]. Sourcetype: Defines the type of data being ingested, which helps Splunk parse and categorize the data. Index: Specifies where the ingested data will be stored within Splunk. While additional settings like host can be configured, they are optional and not mandatory for basic ingestion
upvoted 1 times
BOSS2107
1 week, 1 day ago
Then I would go for B, where host is specified as well, and the same important as the rest.
upvoted 1 times
...
...
A10D21
1 month, 4 weeks ago
D is incoreect, because only monitor stanza does not ingest data. monitor stanza along with index will ingest data. A is correct.
upvoted 1 times
oxdeadbeef
3 weeks, 2 days ago
incorrect. If "index" is not specified it uses the default index. which is "main" unless changed
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago