<?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 How to debug a stuck (parsing)queue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30854#M5428</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a forwarder on AIX with vresion 4.3.3 that probably has a problem with its parsingqueue&lt;/P&gt;

&lt;P&gt;I see the following in metrics.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-13-2013 16:47:50.219 +0100 INFO  Metrics - group=queue, name=parsingqueue, max_size_kb=512, current_size_kb=449, current_size=9, largest_size=9, smallest_size=8
02-13-2013 16:48:21.226 +0100 INFO  Metrics - group=queue, name=parsingqueue, max_size_kb=512, current_size_kb=449, current_size=9, largest_size=9, smallest_size=9
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;splunkd.log contains a lot of :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-13-2013 17:01:37.238 +0100 INFO  TailingProcessor -   ...continuing.
02-13-2013 17:01:42.241 +0100 INFO  TailingProcessor - Could not send data to output queue(parsingQueue), retrying...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restarting splunk does not change the current_size_kb or current_size values so I tried to increase the queue size following this answer:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/38218/universal-forwarder-parsingqueue-kb-size" target="_blank"&gt;http://splunk-base.splunk.com/answers/38218/universal-forwarder-parsingqueue-kb-size&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This leads to  an increase of max_size_kb and current_size_kb but does not result in the forwarder sending anything to the indexer.&lt;/P&gt;

&lt;P&gt;If current_size indicates how many events are in the queue the this number is relatively low.&lt;/P&gt;

&lt;P&gt;Is there a way to debug what events are stuck in a queue?&lt;BR /&gt;
Can I somehow manually force the forwarder to empty the queue and drop the events (I know, that this is ugly)?&lt;/P&gt;

&lt;P&gt;Another strange thing is, that once in a while (every cupple of hours) the logs are suddenly indexed, but I did not find any hints in splunkd.log or metrics.log. There is an identical system with the same configuration that works fine. The indexer is not very busy it indexes about 30-40GB a day. &lt;/P&gt;

&lt;P&gt;Thanks for your help,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:18:51 GMT</pubDate>
    <dc:creator>chris</dc:creator>
    <dc:date>2020-09-28T13:18:51Z</dc:date>
    <item>
      <title>How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30854#M5428</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a forwarder on AIX with vresion 4.3.3 that probably has a problem with its parsingqueue&lt;/P&gt;

&lt;P&gt;I see the following in metrics.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-13-2013 16:47:50.219 +0100 INFO  Metrics - group=queue, name=parsingqueue, max_size_kb=512, current_size_kb=449, current_size=9, largest_size=9, smallest_size=8
02-13-2013 16:48:21.226 +0100 INFO  Metrics - group=queue, name=parsingqueue, max_size_kb=512, current_size_kb=449, current_size=9, largest_size=9, smallest_size=9
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;splunkd.log contains a lot of :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;02-13-2013 17:01:37.238 +0100 INFO  TailingProcessor -   ...continuing.
02-13-2013 17:01:42.241 +0100 INFO  TailingProcessor - Could not send data to output queue(parsingQueue), retrying...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restarting splunk does not change the current_size_kb or current_size values so I tried to increase the queue size following this answer:&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/38218/universal-forwarder-parsingqueue-kb-size" target="_blank"&gt;http://splunk-base.splunk.com/answers/38218/universal-forwarder-parsingqueue-kb-size&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This leads to  an increase of max_size_kb and current_size_kb but does not result in the forwarder sending anything to the indexer.&lt;/P&gt;

&lt;P&gt;If current_size indicates how many events are in the queue the this number is relatively low.&lt;/P&gt;

&lt;P&gt;Is there a way to debug what events are stuck in a queue?&lt;BR /&gt;
Can I somehow manually force the forwarder to empty the queue and drop the events (I know, that this is ugly)?&lt;/P&gt;

&lt;P&gt;Another strange thing is, that once in a while (every cupple of hours) the logs are suddenly indexed, but I did not find any hints in splunkd.log or metrics.log. There is an identical system with the same configuration that works fine. The indexer is not very busy it indexes about 30-40GB a day. &lt;/P&gt;

&lt;P&gt;Thanks for your help,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30854#M5428</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2020-09-28T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30855#M5429</link>
      <description>&lt;P&gt;If this is a forwarder, the problem is usually a step after :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;check that your indexer queues&lt;/LI&gt;
&lt;LI&gt;double check if the forwarder thruput limit is not simply blocking the outputs.
by defaults forwarders have  a limit of 256KBps
see &lt;A href="http://splunk-base.splunk.com/answers/29538/maxkbps-option-and-limiting-a-forwarders-rate-of-thruput"&gt;http://splunk-base.splunk.com/answers/29538/maxkbps-option-and-limiting-a-forwarders-rate-of-thruput&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 13 Feb 2013 16:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30855#M5429</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-02-13T16:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30856#M5430</link>
      <description>&lt;P&gt;Hi Chris, you just got an email &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 06:48:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30856#M5430</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-02-14T06:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30857#M5431</link>
      <description>&lt;P&gt;Thanks for replying, the indexer queues (SOS) seem to be ok, the 256KBps is not a problem either the forwarder has a thruput close to 0 for most of the time and then from time to time indexes its data(I don't see why it behaves like this). I see a couple of  WARN  TcpOutputProc - Raw connection to ip=&lt;IP&gt;:9997 timed out in splunkd.log of the forwarder. So it might be the network. I opened a case for the issue.&lt;/IP&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 09:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30857#M5431</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-02-14T09:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30858#M5432</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Can I somehow manually force the&lt;BR /&gt;
forwarder to empty the queue and drop&lt;BR /&gt;
the events (I know, that this is&lt;BR /&gt;
ugly)?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Did you find an answer for this. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 07:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30858#M5432</guid>
      <dc:creator>immortalraghava</dc:creator>
      <dc:date>2018-03-26T07:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30859#M5433</link>
      <description>&lt;P&gt;anyone, purging queue on (intermediate) forwarders stuck at 100%, without reinstalling from scratch?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 14:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30859#M5433</guid>
      <dc:creator>greich</dc:creator>
      <dc:date>2019-01-24T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30860#M5434</link>
      <description>&lt;P&gt;Restart will by default clear the queues, if you have a specific question it may make sense to open a new Splunk answers post on it as this post is very old&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 23:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/30860#M5434</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2019-01-24T23:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a stuck (parsing)queue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/685197#M114326</link>
      <description>&lt;P&gt;I realize this is an old thread but in case anyone is running into this, this is how I solve it:&lt;/P&gt;&lt;P&gt;Do a running read of splunkd.log while searching for "while reading"&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;tail -f /opt/splunk/var/log/splunk/splunkd.log | grep -i&amp;nbsp;"while reading"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Stop splunk and keep looking at the output of the &lt;FONT face="courier new,courier"&gt;tail&lt;/FONT&gt; command. Whichever file splunk was reading while it was shutdown, is your trouble file.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 19:25:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-debug-a-stuck-parsing-queue/m-p/685197#M114326</guid>
      <dc:creator>makelovenotwar</dc:creator>
      <dc:date>2024-04-23T19:25:58Z</dc:date>
    </item>
  </channel>
</rss>

