<?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: How do I forward and delete logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-and-delete-logs/m-p/469327#M80751</link>
    <description>&lt;P&gt;@nick405060 , Indeed it is &lt;/P&gt;

&lt;P&gt;according to the description of "batch" in inputs.conf.spec , you should set move_policy = sinkhole .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;move_policy = sinkhole
 * IMPORTANT: This attribute/value pair is required. You *must* include "move_policy = sinkhole" when defining batch inputs.
 * This loads the file destructively.  
 * Do not use the batch input type for files you do not want to consume destructively.
 * As long as this is set, Splunk won't keep track of indexed files. Without the "move_policy = sinkhole" setting,  it won't load the files destructively and will keep a track of them.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Aug 2019 23:55:19 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2019-08-29T23:55:19Z</dc:date>
    <item>
      <title>How do I forward and delete logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-and-delete-logs/m-p/469325#M80749</link>
      <description>&lt;P&gt;I would like to be able to forward logs and then delete them using a UF. How can I do this?&lt;/P&gt;

&lt;P&gt;For the sake of the Splunk community, it would be nice if this question had a run-anywhere solution. However, I will also detail my use case specifically.&lt;/P&gt;

&lt;P&gt;I am using Windows Event Forwarding (WEF) to collect 4800/4801 Windows security logs from 2000 of our workstations into a Windows Event Collector (WEC) that has a UF on it. I only spun up the WEC VM with an 80GB disk, as there is no reason to assign more disk space to merely a collection node, and storage is money. I can forward the logs from the WEC without a problem, but I need to be able to purge the logs after forwarding.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 23:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-and-delete-logs/m-p/469325#M80749</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2019-08-29T23:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I forward and delete logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-and-delete-logs/m-p/469326#M80750</link>
      <description>&lt;P&gt;Looks like the answer is a &lt;CODE&gt;batch&lt;/CODE&gt; input&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/Monitorfilesanddirectorieswithinputs.conf#Batch"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/Data/Monitorfilesanddirectorieswithinputs.conf#Batch&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 23:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-and-delete-logs/m-p/469326#M80750</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2019-08-29T23:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I forward and delete logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-and-delete-logs/m-p/469327#M80751</link>
      <description>&lt;P&gt;@nick405060 , Indeed it is &lt;/P&gt;

&lt;P&gt;according to the description of "batch" in inputs.conf.spec , you should set move_policy = sinkhole .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;move_policy = sinkhole
 * IMPORTANT: This attribute/value pair is required. You *must* include "move_policy = sinkhole" when defining batch inputs.
 * This loads the file destructively.  
 * Do not use the batch input type for files you do not want to consume destructively.
 * As long as this is set, Splunk won't keep track of indexed files. Without the "move_policy = sinkhole" setting,  it won't load the files destructively and will keep a track of them.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Aug 2019 23:55:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-forward-and-delete-logs/m-p/469327#M80751</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-29T23:55:19Z</dc:date>
    </item>
  </channel>
</rss>

