<?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 Why is Splunk forwarder locking file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-forwarder-locking-file/m-p/475004#M81567</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have the issue with the Splunk forwarder, which we would like to understand. We monitor one of the directories for the pattern dev_*. The point is that there is a file there, dev_tp_23480, which is created, then deleted, then again created from the application side.&lt;BR /&gt;
The issue is that apparently Splunk sets a lock and the second creation of the file by the application is not possible anymore, we get an error.&lt;BR /&gt;
After Splunk forwarder gets switched off, all runs fine again, the dev_tp_23480 can be created. So the issue has definitely something to do with Splunk.&lt;/P&gt;

&lt;P&gt;We do not need this file actually in Splunk, so I have set the blacklist on dev_tp as a workaround, but I am really curious to understand the root cause as it can have an impact on several landscapes.&lt;/P&gt;

&lt;P&gt;Also, we took a trace of the file accesses (please see picture / attachment) and we clearly see that the splunkd is accessing/checking this file with really high frequency. &lt;BR /&gt;
Actually, from the configuration interval (15 sec) I would expect splunkd checking files only 15 sec.&lt;BR /&gt;
Do I understand it wrong?&lt;BR /&gt;
And if splunkd checks the files in the realtime, isn't it a bit resource intensive? Can it be parametrized? (frequency)&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;BR /&gt;
Kamil&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/275057-file-access-trace.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:48:57 GMT</pubDate>
    <dc:creator>damucka</dc:creator>
    <dc:date>2020-09-30T02:48:57Z</dc:date>
    <item>
      <title>Why is Splunk forwarder locking file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-forwarder-locking-file/m-p/475004#M81567</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have the issue with the Splunk forwarder, which we would like to understand. We monitor one of the directories for the pattern dev_*. The point is that there is a file there, dev_tp_23480, which is created, then deleted, then again created from the application side.&lt;BR /&gt;
The issue is that apparently Splunk sets a lock and the second creation of the file by the application is not possible anymore, we get an error.&lt;BR /&gt;
After Splunk forwarder gets switched off, all runs fine again, the dev_tp_23480 can be created. So the issue has definitely something to do with Splunk.&lt;/P&gt;

&lt;P&gt;We do not need this file actually in Splunk, so I have set the blacklist on dev_tp as a workaround, but I am really curious to understand the root cause as it can have an impact on several landscapes.&lt;/P&gt;

&lt;P&gt;Also, we took a trace of the file accesses (please see picture / attachment) and we clearly see that the splunkd is accessing/checking this file with really high frequency. &lt;BR /&gt;
Actually, from the configuration interval (15 sec) I would expect splunkd checking files only 15 sec.&lt;BR /&gt;
Do I understand it wrong?&lt;BR /&gt;
And if splunkd checks the files in the realtime, isn't it a bit resource intensive? Can it be parametrized? (frequency)&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;BR /&gt;
Kamil&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/275057-file-access-trace.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:48:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-forwarder-locking-file/m-p/475004#M81567</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2020-09-30T02:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk forwarder locking file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-forwarder-locking-file/m-p/475005#M81568</link>
      <description>&lt;P&gt;Best thing is not to monitor the file itself. As per my understanding there is no interval control over file monitoring, it is only there for modular and scripted inputs.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 07:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-forwarder-locking-file/m-p/475005#M81568</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2019-11-05T07:18:08Z</dc:date>
    </item>
  </channel>
</rss>

