nerdexam
Splunk

SPLK-1003 · Question #98

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

The correct answer is C. [monitor:///var/log/www1/secure.log]. https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Monitorfilesanddirectorieswithinputs.c

Configuration Files

Question

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

Options

  • A[monitor:///var/log/.../secure.*
  • B[monitor:///var/log/www1/secure.*]
  • C[monitor:///var/log/www1/secure.log]
  • D[monitor:///var/log/www*/secure.*]

How the community answered

(23 responses)
  • A
    13% (3)
  • B
    4% (1)
  • C
    78% (18)
  • D
    4% (1)

Explanation

https://docs.splunk.com/Documentation/Splunk/8.2.1/Data/Monitorfilesanddirectorieswithinputs.c

Topics

#monitor input#inputs.conf#file monitoring#path matching

Community Discussion

No community discussion yet for this question.

Full SPLK-1003 Practice