<?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 Splunk forwarder input queue in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280199#M10594</link>
    <description>&lt;P&gt;We have build our own custom application which collects data from other devices, and builds a string with a Splunk friendly format.&lt;BR /&gt;
We are considering to use the SplunkUniversalForwarder to deliver the data to our Splunk Enterprise.&lt;/P&gt;

&lt;P&gt;My question:&lt;BR /&gt;
If the SplunkUniversalForwarder for some reason cant reach the indexers (eg closed firewall port or lost network connection), for how long (or how much) will data be kept in the output queue?&lt;BR /&gt;
I have found this setting in the ${SPLUNK_HOME}$/etc/system/default/server.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[queue]
maxSize = 500KB
# look back time in minutes
cntr_1_lookback_time = 60s
cntr_2_lookback_time = 600s
cntr_3_lookback_time = 900s
# sampling interval is the same for all the counters of a particular queue
# and defaults to 1 sec
sampling_interval = 1s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However testing showed that more than 1 MB of data was kept in the queue when link was restored.&lt;/P&gt;

&lt;P&gt;Can anybody show me in any direction where i can find some information on this?&lt;/P&gt;

&lt;P&gt;Any help would be appriciated.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 07:51:56 GMT</pubDate>
    <dc:creator>polymorphic</dc:creator>
    <dc:date>2016-02-12T07:51:56Z</dc:date>
    <item>
      <title>Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280199#M10594</link>
      <description>&lt;P&gt;We have build our own custom application which collects data from other devices, and builds a string with a Splunk friendly format.&lt;BR /&gt;
We are considering to use the SplunkUniversalForwarder to deliver the data to our Splunk Enterprise.&lt;/P&gt;

&lt;P&gt;My question:&lt;BR /&gt;
If the SplunkUniversalForwarder for some reason cant reach the indexers (eg closed firewall port or lost network connection), for how long (or how much) will data be kept in the output queue?&lt;BR /&gt;
I have found this setting in the ${SPLUNK_HOME}$/etc/system/default/server.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[queue]
maxSize = 500KB
# look back time in minutes
cntr_1_lookback_time = 60s
cntr_2_lookback_time = 600s
cntr_3_lookback_time = 900s
# sampling interval is the same for all the counters of a particular queue
# and defaults to 1 sec
sampling_interval = 1s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However testing showed that more than 1 MB of data was kept in the queue when link was restored.&lt;/P&gt;

&lt;P&gt;Can anybody show me in any direction where i can find some information on this?&lt;/P&gt;

&lt;P&gt;Any help would be appriciated.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 07:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280199#M10594</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2016-02-12T07:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280200#M10595</link>
      <description>&lt;P&gt;If a universal forwarder loses contact with its indexer(s), it will buffer events in memory until it can reach an indexer again.  If the memory buffer fills up, the forwarder will write events to disk.  That is why you saw more data buffered than was allowed for in memory.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280200#M10595</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-12T14:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280201#M10596</link>
      <description>&lt;P&gt;Hi Rich&lt;/P&gt;

&lt;P&gt;Thanks for your answer, that's good information, however I would like to read some more detailed information on this.&lt;BR /&gt;
The reason is that too much disk writes could be a big issue because this system is running from a flash drive.&lt;/P&gt;

&lt;P&gt;Therefore i would like to disable that feature.&lt;/P&gt;

&lt;P&gt;I haven't been able to find the documentation on this, so if you could point me in the right direction it would be much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;//Jesper S&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 19:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280201#M10596</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2016-02-12T19:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280202#M10597</link>
      <description>&lt;P&gt;I suggest you make your in-memory queue as large as possible to avoid writing to disk.  Then consider using the dropEventsOnQueueFull attribute.  You can read about it in the Admin manual (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Admin/Outputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Admin/Outputsconf&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 19:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280202#M10597</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-12T19:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280203#M10598</link>
      <description>&lt;P&gt;Thanks again.&lt;/P&gt;

&lt;P&gt;Please see my outputs.conf (used for testing):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = backend
maxQueueSize = 512KB
dropEventsOnQueueFull = 0

[tcpout:backend]
server = splunk.internal:9997

[tcpout-server://splunk.internal:9997]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Did some further testing with theese settings, but the results didnt change.&lt;/P&gt;

&lt;P&gt;Also i dont understand the part marked in &lt;STRONG&gt;bold&lt;/STRONG&gt; of the documentation:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;dropEventsOnQueueFull = &lt;BR /&gt;
* If set to a positive number, wait  seconds before throwing out &lt;BR /&gt;
all new events until the output queue&lt;BR /&gt;
has space.&lt;BR /&gt;
* ** Setting this to -1 or 0 will cause the output queue to block when it gets full, causing further blocking up the processing chain.**&lt;BR /&gt;
* If any target group's queue is blocked, no more data will reach any&lt;BR /&gt;
other   target group.&lt;BR /&gt;
* Using auto load-balancing is the best way to minimize this condition,&lt;BR /&gt;&lt;BR /&gt;
because, in that case, multiple&lt;BR /&gt;
receivers must be down (or jammed up) &lt;BR /&gt;
before queue blocking can occur.&lt;BR /&gt;
* &lt;STRONG&gt;Defaults to -1 (do not drop events).&lt;/STRONG&gt;&lt;BR /&gt;
* DO NOT SET THIS VALUE TO A POSITIVE INTEGER IF YOU ARE MONITORING FILES!&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 15 Feb 2016 07:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280203#M10598</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2016-02-15T07:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280204#M10599</link>
      <description>&lt;P&gt;A blocked processing chain means the forwarder will not read its inputs until the output queue has space.&lt;/P&gt;

&lt;P&gt;Did you restart the forwarder after changing outputs.conf?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 13:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280204#M10599</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-15T13:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280205#M10600</link>
      <description>&lt;P&gt;So what does &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Defaults to -1 (do not drop events)&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;mean?&lt;/P&gt;

&lt;P&gt;Yes, i did restart the forwarder after change, before testing.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 13:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280205#M10600</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2016-02-15T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280206#M10601</link>
      <description>&lt;P&gt;The default value of -1 means to write events to disk rather than discard them.  It's the behavior you are experiencing.&lt;/P&gt;

&lt;P&gt;BTW, if you find the documentation to be confusing or lacking in any way, submit a comment at the bottom of the on-line page.  The Splunk documentation people are very responsive.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 13:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280206#M10601</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-15T13:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk forwarder input queue</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280207#M10602</link>
      <description>&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 14:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-forwarder-input-queue/m-p/280207#M10602</guid>
      <dc:creator>polymorphic</dc:creator>
      <dc:date>2016-02-15T14:18:04Z</dc:date>
    </item>
  </channel>
</rss>

