exam questions

Exam SPLK-1003 All Questions

View all questions & answers for the SPLK-1003 exam

Exam SPLK-1003 topic 1 question 147 discussion

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

Which file will be matched for the following monitor stanza in inputs.conf?

[monitor:///var/log/*/bar/.../*.txt]

  • A. /var/log/host_469386086/bar/file/foo.txt
  • B. /var/log/host_469336086/bar/foo.txt
  • C. /var/log/host_469386086/temp/bar/file/csv/foo.txt
  • D. /var/log/host_469386086/temp/bar/file/foo.txt
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
shesky17
Highly Voted 9 months, 2 weeks ago
A. /var/log/host_469386086/bar/file/foo.txt https://docs.splunk.com/Documentation/Splunk/9.2.1/Admin/Inputsconf "..." searches recursively through one or more directories. This means that /foo/.../bar matches foo/1/bar, foo/1/2/bar, etc. The asterisk (*) matches anything in a single path segment; unlike "...", it does not search recursively. For example, /foo/*/bar matches the files /foo/1/bar, /foo/2/bar, etc. However, it does not match /foo/bar or /foo/1/2/bar.
upvoted 5 times
...
NastyNutsu
Most Recent 1 month ago
Selected Answer: A
/var/log -- root directory */ bar -- any subdirectory just before /bar (this eliminate C and D) .../ -- any further subdirectories within /bar (this eliminated B) *.txt -- only .txt files
upvoted 1 times
...
Ziadz
5 months, 1 week ago
Selected Answer: A
By logic it should be A
upvoted 1 times
...
4bebd32
6 months ago
Selected Answer: A
"A" as explained by shesky17
upvoted 1 times
...
62d8e4c
9 months ago
Selected Answer: A
"..." searches recursively through one or more directories.
upvoted 2 times
...
not_another_user_007
9 months, 2 weeks ago
Selected Answer: B
The answer is B
upvoted 1 times
b997bd0
4 months, 1 week ago
I think should be A, because mentioned three dots, which indicated the folder after bar/ directory.
upvoted 1 times
...
...
Frank_Rai
10 months, 2 weeks ago
Changed to ‘B’ The correct file that will be matched for the given monitor stanza [monitor:///var/log/*/bar/.../*.txt] is: B. /var/log/host_469336086/bar/foo.txt Explanation: The wildcard * matches any string, and the ... allows for any directories to be included in the path. However, the path must end in .txt due to the /*.txt specification. Option B fits this pattern as it directly falls under a bar directory and ends with .txt.
upvoted 2 times
...
Frank_Rai
10 months, 3 weeks ago
"A" looks good.
upvoted 2 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