<?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: Move indexed file! in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198427#M39331</link>
    <description>&lt;P&gt;I want to move to another folder!&lt;/P&gt;

&lt;P&gt;eg. \backup\logs\&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2014 14:26:09 GMT</pubDate>
    <dc:creator>erick_costa</dc:creator>
    <dc:date>2014-01-09T14:26:09Z</dc:date>
    <item>
      <title>Move indexed file!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198425#M39329</link>
      <description>&lt;P&gt;How to do to move files indexed by splunk?&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/teste/teste.log]&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2014 21:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198425#M39329</guid>
      <dc:creator>erick_costa</dc:creator>
      <dc:date>2014-01-08T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Move indexed file!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198426#M39330</link>
      <description>&lt;P&gt;I assume your talking about the source log files?&lt;/P&gt;

&lt;P&gt;It all depends on what you are trying to do and how your logs are generated.&lt;BR /&gt;
Are they rolling, appended to or created freshly each time? That would determine what sort of input you should be using.&lt;/P&gt;

&lt;P&gt;As you are using a monitor statement there are no parameters to do anything with the file once it has been read, it just &lt;EM&gt;monitors&lt;/EM&gt; (ie. reads) the file for new events. It is a non-destructive process.&lt;/P&gt;

&lt;P&gt;If your looking to delete the file once it is read they you need to look at using a different type of input stanza that has a move_policy option such as batch ( &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/admin/inputsconf&lt;/A&gt; ). &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE&gt;move_policy = sinkhole
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;IMPORTANT: This attribute/value pair is required. You &lt;EM&gt;must&lt;/EM&gt; include
"move_policy = sinkhole" when defining
batch    inputs.&lt;/LI&gt;
&lt;LI&gt;This loads the file destructively.&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Do not use the batch input type for files you do not want to consume
destructively.&lt;/LI&gt;
&lt;LI&gt;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;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Normally you would use that for uniquely logs that are placed into your filesystem by another process ie. ftp-ed in etc etc.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 02:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198426#M39330</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2014-01-09T02:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move indexed file!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198427#M39331</link>
      <description>&lt;P&gt;I want to move to another folder!&lt;/P&gt;

&lt;P&gt;eg. \backup\logs\&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 14:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198427#M39331</guid>
      <dc:creator>erick_costa</dc:creator>
      <dc:date>2014-01-09T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Move indexed file!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198428#M39332</link>
      <description>&lt;P&gt;I want to move to another folder!&lt;/P&gt;

&lt;P&gt;eg. \backup\logs\&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 14:26:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Move-indexed-file/m-p/198428#M39332</guid>
      <dc:creator>erick_costa</dc:creator>
      <dc:date>2014-01-09T14:26:58Z</dc:date>
    </item>
  </channel>
</rss>

