QuestionQ33

VerifiedMonitor Inputs

Which file matches the following monitor stanza in inputs.conf?

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

Choose two
Explanation

In a Splunk monitor input, * matches exactly one path segment, while the recursive ... wildcard matches through one or more subdirectory levels. Thus, beneath /var/log/<one-directory>/bar/, both file/foo.txt and file/csv/foo.txt match. A direct .txt file under bar does not satisfy the recursive segment, and an extra directory before bar does not satisfy the single-segment * portion. Splunk documents the recursive wildcard as three literal periods (...), not the single Unicode ellipsis character (…).

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!