QuestionQ101

VerifiedMonitor Inputs

Which of the following monitor-input stanza headers matches all of these files?

  • /var/log/www1/secure.log
  • /var/log/www/secure.l
  • /var/log/www/logs/secure.logs
  • /var/log/www2/secure.log
Explanation

In a Splunk monitor input path, ... recursively matches subdirectories, while secure.* matches each listed filename. Therefore, [monitor:///var/log/.../secure.*] includes files directly beneath any depth of subdirectory under /var/log/, including /var/log/www/logs/secure.logs.

Learn more

Community Discussion

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