<?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: Can you auto remove CSV files after indexing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400977#M71401</link>
    <description>&lt;P&gt;Mus, Thanks, thats mostly what i want.  But , is there an option to delete only beyond 7 days or 'n' number of days , so at least i retain few recent files...&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 06:52:42 GMT</pubDate>
    <dc:creator>jiaqya</dc:creator>
    <dc:date>2018-05-17T06:52:42Z</dc:date>
    <item>
      <title>Can you auto remove CSV files after indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400975#M71399</link>
      <description>&lt;P&gt;Is there a configuration in Splunk where it can remove/move a CSV file after it has been indexed? so it does not show as active in the configured data input folder for being scanned as a valid file..( since its already indexed )&lt;/P&gt;

&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 04:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400975#M71399</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2018-05-17T04:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you auto remove CSV files after indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400976#M71400</link>
      <description>&lt;P&gt;Hi jiaqya,&lt;/P&gt;

&lt;P&gt;you are looking for the &lt;CODE&gt;[batch://...]&lt;/CODE&gt; stanza in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;, here are the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf#BATCH_.28.22Upload_a_file.22_in_Splunk_Web.29:"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf#BATCH_.28.22Upload_a_file.22_in_Splunk_Web.29:&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch://&amp;lt;path&amp;gt;]
* A one-time, destructive input of files in &amp;lt;path&amp;gt;.
* For continuous, non-destructive inputs of files, use 'monitor' instead.

# Additional settings:

move_policy = sinkhole
* IMPORTANT: This setting is required. You *must* include
  "move_policy = sinkhole" when you define batch inputs.
* This setting causes the input to load the file destructively.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 04:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400976#M71400</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-17T04:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you auto remove CSV files after indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400977#M71401</link>
      <description>&lt;P&gt;Mus, Thanks, thats mostly what i want.  But , is there an option to delete only beyond 7 days or 'n' number of days , so at least i retain few recent files...&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 06:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400977#M71401</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2018-05-17T06:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can you auto remove CSV files after indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400978#M71402</link>
      <description>&lt;P&gt;Hey@MuS,&lt;/P&gt;

&lt;P&gt;What permission does the file require for destructive input?&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 08:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400978#M71402</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-05-17T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you auto remove CSV files after indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400979#M71403</link>
      <description>&lt;P&gt;If on nix you need write (+w) permissions, and parent directory should be accessible (+x) to the user which is you want to have delete permission.&lt;/P&gt;

&lt;P&gt;If on Windows ... &lt;CODE&gt;¯\_(ツ)_/¯&lt;/CODE&gt; sorry cannot help here, but I'm sure you will find something asking google.&lt;/P&gt;

&lt;P&gt;cheers, MuS  &lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 20:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-auto-remove-CSV-files-after-indexing/m-p/400979#M71403</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-22T20:08:39Z</dc:date>
    </item>
  </channel>
</rss>

