SPLK-1003 Exam QuestionsBrowse all questions from this exam

SPLK-1003 Exam - Question 106


Which of the following monitor inputs stanza headers would match all of the following files?

/var/log/www1/secure.log

/var/log/www/secure.l

/var/log/www/logs/secure.logs

/var/log/www2/secure.log

Show Answer
Correct Answer: A

To match all the given log file paths, the monitor stanza needs to traverse through different directory levels. The ellipsis wildcard ('...') is recursive and will match any number of subdirectory levels. Therefore, '[monitor:///var/log/.../secure.*]' will match '/var/log/www1/secure.log', '/var/log/www/secure.l', '/var/log/www/logs/secure.logs', and '/var/log/www2/secure.log' efficiently, as it can account for any subdirectory structures present in the given paths.

Discussion

8 comments
Sign in to comment
furiousjaseOption: A
Sep 15, 2021

Confirmed - A - "The ellipsis wildcard recursesthrough directories and subdirectories to match." "The asterisk wildcard matches anything in that specific directory path segment but does not go beyond that segment in the path. Normally it should be used at the end of a path."

ucsdmiami2020
Sep 23, 2021

Per Splunk docs reference URL https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Specifyinputpathswithwildcards Wildcard Description Regex equivalent Examples ... The ellipsis wildcard searches recursively through directories and any number of levels of subdirectories to find matches. If you specify a folder separator (for example, //var/log/.../file), it does not match the first folder level, only subfolders. .* /foo/.../bar.log matches /foo/1/bar.log, /foo/2/bar.log, /foo/1/2/bar.log, and so on. It does not match /foo/bar.log or /foo/3/notbar.log. Because a single ellipse searches recursively through all folders and subfolders, /foo/.../bar.log matches /foo/.../.../bar.log.

kiranharOption: A
Aug 25, 2021

Answer is A

kiranharOption: A
Aug 25, 2021

answer is A

fabtasticOption: A
May 29, 2022

Answer is A

pro12345Option: A
Sep 24, 2022

Confirmed - A

solomoneOption: A
Jun 8, 2023

There are two different WWW folders. You need ... (three dots variable) to traverse all of them.

HNakaOption: A
Jan 25, 2024

Answer is A!!!!!!

yybbbOption: A
Jan 30, 2024

The third file has one more layer of subdir so "..." is needed. Therefore A is the only answer.