Getting Data In

splunk universal forwarder not monitoring all files in a folder

sid1987
New Member

Same version of splunk forwarder (8.0.2) on 2 linux servers are behaving differently.

One lists all files under a folder to monitor. However other one shows only few of them. What's the issue.

0 Karma

manjunathmeti
Champion

Check if forwarders in both linux servers have same inputs.conf configurations. If yes, then check the file and folders permissions on both servers.

0 Karma

sid1987
New Member

strange part is the server which is working fine has no monitor parameter set in any of the inputs.conf

/opt/splunkforwarder/bin/splunk list monitor
Monitored Directories:
        $SPLUNK_HOME/var/log/splunk
                /opt/splunkforwarder/var/log/splunk/audit.log
                /opt/splunkforwarder/var/log/splunk/first_install.log
                /opt/splunkforwarder/var/log/splunk/splunkd_access.log
        $SPLUNK_HOME/var/log/splunk/license_usage_summary.log
        $SPLUNK_HOME/var/log/splunk/metrics.log
                /opt/splunkforwarder/var/log/splunk/metrics.log
        $SPLUNK_HOME/var/log/splunk/splunk_instrumentation_cloud.log*
        $SPLUNK_HOME/var/log/splunk/splunkd.log
                /opt/splunkforwarder/var/log/splunk/splunkd.log
        $SPLUNK_HOME/var/log/watchdog/watchdog.log*
        /var/log/forwarder-logs
                /var/log/forwarder-logs/LogA
                /var/log/forwarder-logs/LogB
                /var/log/forwarder-logs/LogC
                /var/log/forwarder-logs/LogD
                /var/log/forwarder-logs/LogE
                /var/log/forwarder-logs/LogF
                /var/log/forwarder-logs/LogG
                /var/log/forwarder-logs/LogH
                /var/log/forwarder-logs/LogI
                /var/log/forwarder-logs/LogJ
Monitored Files:
        $SPLUNK_HOME/etc/splunk.version
        $SPLUNK_HOME/var/run/splunk/search_telemetry/*search_telemetry.json
        $SPLUNK_HOME/var/spool/splunk/...stash_new

grep -r "/var/log/forwarder-logs" /opt/splunkforwarder/etc/

Above command returns nothing.

0 Karma

manjunathmeti
Champion

It'll be there somewhere use btool command to check:

/opt/splunkforwarder/bin/splunk cmd btool inputs list --debug

Check if directories are monitored recursively, check paths with /.../

0 Karma

sid1987
New Member

strangely nothing again.

/opt/splunkforwarder/bin/splunk cmd btool inputs list --debug | grep forwarder | grep -v splunkforwarder
0 Karma
Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...