nerdexam
Splunk

SPLK-1003 · Question #36

What is the difference between the two wildcards ... and -for the monitor stanza in inputs, conf?

The correct answer is C. * matches anything in that specific directory path segment, whereas ... recurses through. In inputs.conf monitor stanzas, the two wildcards behave differently in terms of directory traversal. The single asterisk () is a shallow wildcard that matches any characters within a single directory path segment only - it does not cross directory boundaries. The triple dot (...

Configuration Files

Question

What is the difference between the two wildcards ... and -for the monitor stanza in inputs, conf?

Options

  • A... is not supported in monitor stanzas
  • BThere is no difference, they are interchangable and match anything beyond directory boundaries.
  • C
    • matches anything in that specific directory path segment, whereas ... recurses through
  • D... matches anything in that specific directory path segment, whereas -recurses through

How the community answered

(31 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    87% (27)
  • D
    3% (1)

Explanation

In inputs.conf monitor stanzas, the two wildcards behave differently in terms of directory traversal. The single asterisk () is a shallow wildcard that matches any characters within a single directory path segment only - it does not cross directory boundaries. The triple dot (...) is a recursive wildcard that traverses into subdirectories at any depth. For example, /var/log/ would match files directly in /var/log/ but not in subdirectories, while /var/log/... would match files in /var/log/ and all nested subdirectories. This distinction is important when configuring file monitoring inputs to control the scope of what Splunk monitors.

Topics

#inputs.conf#monitor stanza#wildcards#data input

Community Discussion

No community discussion yet for this question.

Full SPLK-1003 Practice