<?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: batch upload not working - files not being consumed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27614#M4643</link>
    <description>&lt;P&gt;Order shouldn't matter, nor should the monitor stanza be required.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2010 00:20:43 GMT</pubDate>
    <dc:creator>Stephen_Sorkin</dc:creator>
    <dc:date>2010-08-26T00:20:43Z</dc:date>
    <item>
      <title>batch upload not working - files not being consumed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27610#M4639</link>
      <description>&lt;P&gt;I am trying batch upload like this from a light forwarder. But the files are not being consumed (there are only 2 small test files). Am I missing a key attribute? version 4.1.3, build 80534&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch:///var/log/archived_files]
move_policy = sinkhole
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2010 02:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27610#M4639</guid>
      <dc:creator>skattamu</dc:creator>
      <dc:date>2010-08-11T02:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: batch upload not working - files not being consumed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27611#M4640</link>
      <description>&lt;P&gt;I'm not certain that this is the cause of your problem, but: the directory /var/log/archived_files is beneath /var/log.  If /var/log is being monitored by a [monitor://] stanza in any input.conf file, then you are also monitoring /var/log/archived_files&lt;/P&gt;

&lt;P&gt;It probably won't work to have /var/log/archived_files covered by both [monitor://] and [batch://] stanzas.  I suggest that you move the archived_files directory somewhere else and set up the batch upload there.&lt;/P&gt;

&lt;P&gt;Also, is the move_policy=sinkhole on a separate line of your inputs.conf file (instead of the one line as it appears above)?  I figure it might be a cut-and-paste problem, but I just wanted to mention that stanzas must be on a separate line.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27611#M4640</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2010-08-11T06:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: batch upload not working - files not being consumed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27612#M4641</link>
      <description>&lt;P&gt;This configuration should work. I just tested it on 4.1.3 with the following in inputs.conf (to check lguinn's hypothesis):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///Users/ssorkin/tail]

[batch:///Users/ssorkin/tail/sinkhole]
move_policy = sinkhole
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ssorkin$ date &amp;gt;&amp;gt; tail/sinkhole/sinkhole.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The file is indexed and deleted from that directory.&lt;/P&gt;

&lt;P&gt;When you say that the file isn't consumed, do you mean that it's not indexed, not deleted or either. Does the user that Splunk is run as have sufficient permissions to read the file and remove them from the directory?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 10:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27612#M4641</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-25T10:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: batch upload not working - files not being consumed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27613#M4642</link>
      <description>&lt;P&gt;Thanks. It started working when I used this stanza (apparently the order mattered)&lt;BR /&gt;
[batch://&lt;LOG_DIR&gt;]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
move_policy = sinkhole&lt;/LOG_DIR&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27613#M4642</guid>
      <dc:creator>skattamu</dc:creator>
      <dc:date>2010-08-25T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: batch upload not working - files not being consumed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27614#M4643</link>
      <description>&lt;P&gt;Order shouldn't matter, nor should the monitor stanza be required.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2010 00:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27614#M4643</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-26T00:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: batch upload not working - files not being consumed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27615#M4644</link>
      <description>&lt;P&gt;If batch follows the same logic as monitor, if you put the same file into a batch input twice, will you have to change crcSalt to make Splunk eat the file again?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2010 02:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/batch-upload-not-working-files-not-being-consumed/m-p/27615#M4644</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-09-02T02:56:51Z</dc:date>
    </item>
  </channel>
</rss>

