<?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 batch processing not removing files after indexing them in Splunk 6.2.1? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-batch-processing-not-removing-files-after-indexing-them/m-p/217856#M42860</link>
    <description>&lt;P&gt;I have an app that is not removing/deleting the files after consuming them. They are indexed appropriately, but just not deleted afterwards.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///opt/splunk/etc/apps/my-special-app/pickup/*.json]
index = test
sourcetype = nessus_json
move_policy = sinkhole
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tested this on a second Splunk box and the exact same app will correctly remove the files after indexing them. I can't tell where the issue may be on this main Splunk box, however. Any suggestions?&lt;/P&gt;

&lt;P&gt;On Splunk v6.2.1. This worked a month or so ago. I'd rather figure out the cause before moving to upgrade the Splunk instance.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 17:07:20 GMT</pubDate>
    <dc:creator>jizzmaster</dc:creator>
    <dc:date>2015-11-03T17:07:20Z</dc:date>
    <item>
      <title>Why is batch processing not removing files after indexing them in Splunk 6.2.1?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-batch-processing-not-removing-files-after-indexing-them/m-p/217856#M42860</link>
      <description>&lt;P&gt;I have an app that is not removing/deleting the files after consuming them. They are indexed appropriately, but just not deleted afterwards.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///opt/splunk/etc/apps/my-special-app/pickup/*.json]
index = test
sourcetype = nessus_json
move_policy = sinkhole
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tested this on a second Splunk box and the exact same app will correctly remove the files after indexing them. I can't tell where the issue may be on this main Splunk box, however. Any suggestions?&lt;/P&gt;

&lt;P&gt;On Splunk v6.2.1. This worked a month or so ago. I'd rather figure out the cause before moving to upgrade the Splunk instance.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 17:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-batch-processing-not-removing-files-after-indexing-them/m-p/217856#M42860</guid>
      <dc:creator>jizzmaster</dc:creator>
      <dc:date>2015-11-03T17:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is batch processing not removing files after indexing them in Splunk 6.2.1?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-batch-processing-not-removing-files-after-indexing-them/m-p/217857#M42861</link>
      <description>&lt;P&gt;Sounds like the permissions on the filesystem got screwed up. Check to make sure the account splunk is running as can actually delete the files.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 21:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-batch-processing-not-removing-files-after-indexing-them/m-p/217857#M42861</guid>
      <dc:creator>samhays</dc:creator>
      <dc:date>2017-10-26T21:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is batch processing not removing files after indexing them in Splunk 6.2.1?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-batch-processing-not-removing-files-after-indexing-them/m-p/217858#M42862</link>
      <description>&lt;P&gt;I forced a permissions issue with a file such that the Splunk user had read, not write permissions to a file that was configured as a batch input.  It resulted in this line in &lt;CODE&gt;splunkd.log&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-24-2017 22:49:10.062 +0000 ERROR TailReader - Unable to remove sinkhole file: path=/tmp/batch_del_fail.log, errno=Operation not permitted
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you look for a similar message to verify if it is a simple permissions issue?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 22:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-batch-processing-not-removing-files-after-indexing-them/m-p/217858#M42862</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-11-24T22:52:50Z</dc:date>
    </item>
  </channel>
</rss>

