QuestionQ12

VerifiedMonitor Inputs

Li was asked to create a Splunk configuration for monitoring syslog files stored on Linux servers in their organization. The configuration will be deployed to multiple systems through a Splunk app that uses the on-premises deployment server.

System administrators gave Li a directory listing of the logging locations on three syslog hosts, representative of the file structure on every system collecting this data. One example from each system appears below:

Host: syslog01 -

File path: /var/log/network/syslog01/linux_secure/syslog.log

Host: syslog02 -

File path: /var/log/network/syslog02/linux_secure/syslog.log

Host: us-syslog-01 -

File path: /var/log/network/us-syslog-01/linux_secure/syslog.log.2020090801

Which monitor:// stanza could Li use in their app to ensure that all three files are ingested into Splunk?

Explanation

In a Splunk monitor input path, * matches any characters within a single path segment. Therefore, *syslog* matches all three host-directory names, and syslog.log* matches both syslog.log and the rolled filename syslog.log.2020090801.

Learn more

Community Discussion

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