<?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: plot rate of change in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112690#M29609</link>
    <description>&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
index=os sourcetype=interfaces host=prefix-*&lt;BR /&gt;
| reverse&lt;BR /&gt;
| streamstats range(TXbytes) as tx_delta global=f window=2 by host&lt;BR /&gt;
| timechart span=1m max(tx_delta) as tx_delta by host&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Based on &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/search-commands-delta.html"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/search-commands-delta.html&lt;/A&gt; and tweaked to work for fleets of hosts.&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2020 00:22:08 GMT</pubDate>
    <dc:creator>jdsumsion</dc:creator>
    <dc:date>2020-02-08T00:22:08Z</dc:date>
    <item>
      <title>plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112683#M29602</link>
      <description>&lt;P&gt;This seems like such an elementary use of splunk, I can't believe I've spent days researching this to no avail.  I've read the two other relevant questions, but their answers don't work.&lt;/P&gt;

&lt;P&gt;I have a nice chart of message counts produced by:&lt;/P&gt;

&lt;P&gt;index=... source=... earliest=...  | timechart span=15m max(out_msgs)&lt;/P&gt;

&lt;P&gt;But what I want is a rate per interval of 'out_msgs' (eg messages per 15min)&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 03:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112683#M29602</guid>
      <dc:creator>jgc94131</dc:creator>
      <dc:date>2014-06-20T03:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112684#M29603</link>
      <description>&lt;P&gt;could you be a little more clear? you are plotting them for every 15 minutes already. What do we required here? Is rate is another param?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|bucket _time span=15m |chart max(rate) by out_msgs&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|timechart span=15m max(rate) by out_msgs&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
L&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 03:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112684#M29603</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-06-20T03:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112685#M29604</link>
      <description>&lt;P&gt;Hi jgc94131,&lt;/P&gt;

&lt;P&gt;take this run everywhere example and adapt it to your needs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal 
| bucket _time span=15min
| multikv fields series, kbps  
| stats earliest(kbps) as previous, latest(kbps) as current by series
| eval rateofchange=round((current-previous)/previous,2) 
| rename rateofchange as "% Rate of Change"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will create a stats table of kbps per series and evaluates a &lt;CODE&gt;% Rate of Change&lt;/CODE&gt; per 15 minutes interval.&lt;BR /&gt;
If you only want to see the &lt;CODE&gt;delta&lt;/CODE&gt; between the 15min interval you can also use something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | timechart span=15min avg(kbps) AS avgKBPS | delta avgKBPS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:28:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112685#M29604</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-20T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112686#M29605</link>
      <description>&lt;P&gt;Alternatively, you could do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=15m max(out_msgs) as out_msgs | delta out_msgs as delta | fields - out_msgs
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112686#M29605</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-06-20T07:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112687#M29606</link>
      <description>&lt;P&gt;HeHe, looks like I missed something in my &lt;CODE&gt;delta&lt;/CODE&gt; example, but I cannot figure it out what .... ? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112687#M29606</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-06-20T07:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112688#M29607</link>
      <description>&lt;P&gt;out_msgs is a counter that increments on each output message. I want to measure its rate of change.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 17:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112688#M29607</guid>
      <dc:creator>jgc94131</dc:creator>
      <dc:date>2014-06-20T17:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112689#M29608</link>
      <description>&lt;P&gt;This is great. I understand it. It's simple. It uses delta. Excellent.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2014 17:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112689#M29608</guid>
      <dc:creator>jgc94131</dc:creator>
      <dc:date>2014-06-20T17:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: plot rate of change</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112690#M29609</link>
      <description>&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
index=os sourcetype=interfaces host=prefix-*&lt;BR /&gt;
| reverse&lt;BR /&gt;
| streamstats range(TXbytes) as tx_delta global=f window=2 by host&lt;BR /&gt;
| timechart span=1m max(tx_delta) as tx_delta by host&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Based on &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/search-commands-delta.html"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/search-commands-delta.html&lt;/A&gt; and tweaked to work for fleets of hosts.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 00:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plot-rate-of-change/m-p/112690#M29609</guid>
      <dc:creator>jdsumsion</dc:creator>
      <dc:date>2020-02-08T00:22:08Z</dc:date>
    </item>
  </channel>
</rss>

