Getting Data In

Splunk does not detect new files on CIFS-mounted directory until restart

koyachi
Explorer

Environment

  • Splunk Enterprise (single-instance: indexing + monitoring on same host)

  • OS: Linux

  • Log directory mounted via SMB/CIFS (smb2)

  • Input type: monitor://

  • Files are created by an external application on the CIFS share

Problem Description
Splunk does not automatically detect or ingest newly created log files under a CIFS-mounted directory when using a monitor:// input. Newly created files are only picked up after a manual Splunk restart. Existing files are indexed correctly at startup.

Observed Behavior

  • New log files are created in the monitored directory and are visible via ls

  • Files have correct permissions and ownership

  • Splunk does not ingest or log any monitor activity for new files while running

  • After restarting Splunk, all previously missed files are detected and indexed

Expected Behavior
Splunk should detect and ingest newly created files in the monitored directory without requiring a restart.

Key Finding
The monitored path is mounted via CIFS/SMB, and it appears that filesystem change notifications (inotify) are not being triggered for new files created on the share. As a result, Splunk is not notified of new files while running.

Troubleshooting Performed

  • Verified monitor stanza is loaded using splunk btool inputs list --debug

  • Verified file permissions and ownership (readable by Splunk user)

  • Tested with simple locally created files (echo > test.log)

  • Confirmed files appear in directory but are not indexed

  • Verified whitelist/blacklist regex does not exclude files

  • Adjusted CRC-related settings (crcSalt, initCrcLength)

  • Confirmed that polling_interval is not a valid or supported setting

  • Observed that Splunk only detects files during startup full directory scan

Can someone help to answer below so that it helps to understand if monitoring of files is possible for logs configured over mount.

  • Confirm whether monitor:// inputs are supported and expected to work reliably on CIFS/SMB-mounted directories

  • Clarify any documented or undocumented limitations regarding inotify on network-mounted filesystems

  • Advise on supported configurations or recommended alternatives (e.g., NFS, local landing directory, or forwarder-based architecture)

 

Labels (2)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

CIFS client in Linux is... well, something else. It has had its share of problems "since always" - it can hang on you when the source server rebooted and stuff like that.

Generally - network file systems have their fair share of possible issues but NFS4 seems more robust.

And the recommended way of ingesting files is of course deployment of the UF to the source server.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...