<?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 Timechart: show rate derived from total count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-show-rate-derived-from-total-count/m-p/173144#M49658</link>
    <description>&lt;P&gt;Very frequently, I collect statistics in the form of absolute values like "Total number of requests", "Size of queue" etc.&lt;/P&gt;

&lt;P&gt;Is there an easy way to show the change rate in a timechart?&lt;/P&gt;

&lt;P&gt;Let's say we have the following simple timechart that shows the egress of messages per queue per minute:&lt;/P&gt;

&lt;P&gt;timechart span=1m max(total_egress) by queue&lt;/P&gt;

&lt;P&gt;Data: 0 - 10 - 20 - 200&lt;/P&gt;

&lt;P&gt;How I can convert this to messages sent per minute per queue?&lt;/P&gt;

&lt;P&gt;Data: 0 - 10 - 10 - 180&lt;/P&gt;

&lt;P&gt;I found something like this &lt;A href="http://answers.splunk.com/answers/59617/show-proper-rate-of-a-continually-increasing-value"&gt;http://answers.splunk.com/answers/59617/show-proper-rate-of-a-continually-increasing-value&lt;/A&gt; but it is way to elaborate for my taste. I would like to able to calculate that rate ad hoc in a search.&lt;/P&gt;

&lt;P&gt;Or there is &lt;A href="http://answers.splunk.com/answers/46472/find-rate-from-total"&gt;http://answers.splunk.com/answers/46472/find-rate-from-total&lt;/A&gt; but that doesn't work if I need the rate by queue.&lt;/P&gt;</description>
    <pubDate>Wed, 21 May 2014 05:27:29 GMT</pubDate>
    <dc:creator>aluetjen</dc:creator>
    <dc:date>2014-05-21T05:27:29Z</dc:date>
    <item>
      <title>Timechart: show rate derived from total count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-show-rate-derived-from-total-count/m-p/173144#M49658</link>
      <description>&lt;P&gt;Very frequently, I collect statistics in the form of absolute values like "Total number of requests", "Size of queue" etc.&lt;/P&gt;

&lt;P&gt;Is there an easy way to show the change rate in a timechart?&lt;/P&gt;

&lt;P&gt;Let's say we have the following simple timechart that shows the egress of messages per queue per minute:&lt;/P&gt;

&lt;P&gt;timechart span=1m max(total_egress) by queue&lt;/P&gt;

&lt;P&gt;Data: 0 - 10 - 20 - 200&lt;/P&gt;

&lt;P&gt;How I can convert this to messages sent per minute per queue?&lt;/P&gt;

&lt;P&gt;Data: 0 - 10 - 10 - 180&lt;/P&gt;

&lt;P&gt;I found something like this &lt;A href="http://answers.splunk.com/answers/59617/show-proper-rate-of-a-continually-increasing-value"&gt;http://answers.splunk.com/answers/59617/show-proper-rate-of-a-continually-increasing-value&lt;/A&gt; but it is way to elaborate for my taste. I would like to able to calculate that rate ad hoc in a search.&lt;/P&gt;

&lt;P&gt;Or there is &lt;A href="http://answers.splunk.com/answers/46472/find-rate-from-total"&gt;http://answers.splunk.com/answers/46472/find-rate-from-total&lt;/A&gt; but that doesn't work if I need the rate by queue.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 05:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-show-rate-derived-from-total-count/m-p/173144#M49658</guid>
      <dc:creator>aluetjen</dc:creator>
      <dc:date>2014-05-21T05:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart: show rate derived from total count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-show-rate-derived-from-total-count/m-p/173145#M49659</link>
      <description>&lt;P&gt;Hi aluetjen,&lt;/P&gt;

&lt;P&gt;here are some run everywhere examples for the &lt;EM&gt;messages sent per minute per queue&lt;/EM&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal earliest=-15m@m | timechart span=1m count by series
index=_internal earliest=-15m@m | timechart span=1m sum(kbps) AS mySum by series
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and if you want to use &lt;CODE&gt;delta&lt;/CODE&gt; on this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal earliest=-15m@m | bucket _time span=1m | stats count AS myCount by series, _time | delta myCount
index=_internal earliest=-15m@m | bucket _time span=1m | stats sum(kbps) AS mySum by series, _time | delta mySum
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;count&lt;/CODE&gt; examples will give you a total count of events for each series and the &lt;CODE&gt;sum&lt;/CODE&gt; example will sum the values of the given field, in this case kbps of each series.&lt;/P&gt;

&lt;P&gt;hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2014 06:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-show-rate-derived-from-total-count/m-p/173145#M49659</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-05-21T06:08:58Z</dc:date>
    </item>
  </channel>
</rss>

