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.
/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
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.
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.
shesky17
Highly Voted 9 months, 2 weeks agoNastyNutsu
Most Recent 1 month agoZiadz
5 months, 1 week ago4bebd32
6 months ago62d8e4c
9 months agonot_another_user_007
9 months, 2 weeks agob997bd0
4 months, 1 week agoFrank_Rai
10 months, 2 weeks agoFrank_Rai
10 months, 3 weeks ago