<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk does not detect new files on CIFS-mounted directory until restart in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-does-not-detect-new-files-on-CIFS-mounted-directory-until/m-p/757218#M120118</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Generally - network file systems have their fair share of possible issues but NFS4 seems more robust.&lt;/P&gt;&lt;P&gt;And the recommended way of ingesting files is of course deployment of the UF to the source server.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jan 2026 13:05:14 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2026-01-13T13:05:14Z</dc:date>
    <item>
      <title>Splunk does not detect new files on CIFS-mounted directory until restart</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-does-not-detect-new-files-on-CIFS-mounted-directory-until/m-p/757208#M120114</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Splunk Enterprise (single-instance: indexing + monitoring on same host)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;OS: Linux&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Log directory mounted via &lt;STRONG&gt;SMB/CIFS (smb2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Input type: monitor://&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Files are created by an external application on the CIFS share&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Problem Description&lt;/STRONG&gt;&lt;BR /&gt;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 &lt;STRONG&gt;manual Splunk restart&lt;/STRONG&gt;. Existing files are indexed correctly at startup.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Observed Behavior&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;New log files are created in the monitored directory and are visible via ls&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Files have correct permissions and ownership&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Splunk does &lt;STRONG&gt;not&lt;/STRONG&gt; ingest or log any monitor activity for new files while running&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After restarting Splunk, all previously missed files are detected and indexed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Expected Behavior&lt;/STRONG&gt;&lt;BR /&gt;Splunk should detect and ingest newly created files in the monitored directory without requiring a restart.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Key Finding&lt;/STRONG&gt;&lt;BR /&gt;The monitored path is mounted via &lt;STRONG&gt;CIFS/SMB&lt;/STRONG&gt;, and it appears that &lt;STRONG&gt;filesystem change notifications (inotify) are not being triggered for new files created on the share&lt;/STRONG&gt;. As a result, Splunk is not notified of new files while running.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Troubleshooting Performed&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Verified monitor stanza is loaded using splunk btool inputs list --debug&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Verified file permissions and ownership (readable by Splunk user)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Tested with simple locally created files (echo &amp;gt; test.log)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Confirmed files appear in directory but are not indexed&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Verified whitelist/blacklist regex does not exclude files&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Adjusted CRC-related settings (crcSalt, initCrcLength)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Confirmed that polling_interval is not a valid or supported setting&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Observed that Splunk only detects files during startup full directory scan&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can someone help to answer below so that it helps to understand if monitoring of files is possible for logs configured over mount.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Confirm whether monitor:// inputs are supported and expected to work reliably on CIFS/SMB-mounted directories&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Clarify any documented or undocumented limitations regarding inotify on network-mounted filesystems&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Advise on supported configurations or recommended alternatives (e.g., NFS, local landing directory, or forwarder-based architecture)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 03:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-does-not-detect-new-files-on-CIFS-mounted-directory-until/m-p/757208#M120114</guid>
      <dc:creator>koyachi</dc:creator>
      <dc:date>2026-01-13T03:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk does not detect new files on CIFS-mounted directory until restart</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-does-not-detect-new-files-on-CIFS-mounted-directory-until/m-p/757218#M120118</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Generally - network file systems have their fair share of possible issues but NFS4 seems more robust.&lt;/P&gt;&lt;P&gt;And the recommended way of ingesting files is of course deployment of the UF to the source server.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 13:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-does-not-detect-new-files-on-CIFS-mounted-directory-until/m-p/757218#M120118</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2026-01-13T13:05:14Z</dc:date>
    </item>
  </channel>
</rss>

