<?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 can we subtract dequeue count of now with an hour before dequeue count number to monitor queues are progressing? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601929#M209501</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=amq_queues queue=ABC | where size &amp;gt; 0 | eventstats max(dequeueCount) as maximum min(dequeueCount) as minimum by queue | where maximum=minimum&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 15 Jun 2022 15:12:04 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2022-06-15T15:12:04Z</dc:date>
    <item>
      <title>How can we subtract dequeue count of now with an hour before dequeue count number to monitor queues are progressing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601690#M209408</link>
      <description>&lt;P&gt;How can we subtract dequeue count of now with an hour before dequeue count number to monitor queues are progressing?&lt;/P&gt;
&lt;P&gt;Log lines are like these:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;2022/06/14&lt;/SPAN&gt; &lt;SPAN class=""&gt;09:19:02&lt;/SPAN&gt; &lt;SPAN class=""&gt;queue=ABC&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class=""&gt;size=0&lt;/SPAN&gt; &lt;SPAN class=""&gt;consumerCount=2&lt;/SPAN&gt; &lt;SPAN class=""&gt;enqueueCount=12907&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class=""&gt;dequeueCount=15466&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;2022/06/14 08:19:02&amp;nbsp;queue=ABC size=0 consumerCount=2 enqueueCount=12850 &lt;STRONG&gt;dequeueCount=15409&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;looking to do subtraction of&amp;nbsp;dequeueCount (15466-15409) and setup an alert if it equals to 0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 16:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601690#M209408</guid>
      <dc:creator>Hussain</dc:creator>
      <dc:date>2022-06-14T16:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Activemq dequeue count monitoring</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601692#M209410</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort 0 _time
| streamstats window=1 current=f values(dequeueCount) as previousDequeueCount
| eval dequeues=dequeueCount-previousDequeueCount&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jun 2022 09:29:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601692#M209410</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-14T09:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can we subtract dequeue count of now with an hour before dequeue count number to monitor queues are progressing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601928#M209500</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thanks, tried but don't see any difference&amp;nbsp;&lt;/P&gt;&lt;P&gt;streamstats looks better option, not sure how can we save max and min values as variable and and then do subtraction&lt;/P&gt;&lt;P&gt;Tried following (it is always giving latest result), was expecting output only when queue is not dequeuing for last an hour&lt;/P&gt;&lt;P&gt;sourcetype=amq_queues queue=ABC | where size &amp;gt; 0 | streamstats max(dequeueCount) as maximum min(dequeueCount) as minimum | where maximum - minimum = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601928#M209500</guid>
      <dc:creator>Hussain</dc:creator>
      <dc:date>2022-06-15T15:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can we subtract dequeue count of now with an hour before dequeue count number to monitor queues are progressing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601929#M209501</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=amq_queues queue=ABC | where size &amp;gt; 0 | eventstats max(dequeueCount) as maximum min(dequeueCount) as minimum by queue | where maximum=minimum&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601929#M209501</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-06-15T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can we subtract dequeue count of now with an hour before dequeue count number to monitor queues are progressing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601931#M209503</link>
      <description>&lt;P&gt;Please can you expand on your problem - do you have multiple log events per hour? do you want to compare the first event with the last event? do you want only one result?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-subtract-dequeue-count-of-now-with-an-hour-before/m-p/601931#M209503</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-15T15:19:04Z</dc:date>
    </item>
  </channel>
</rss>

