<?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: Single trend values from day to day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Single-trend-values-from-day-to-day/m-p/123981#M33485</link>
    <description>&lt;P&gt;You can use a timechart to calculate the averages and the streamstats command to calculate a daily ratio:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ...| timechart span=1d avg(msecs) AS avg
 | streamstats current=f global=f window=1 latest(avg) as previous_day_avg
 | eval ratio=round(avg/previous_day_avg,2)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To do it per month use:&lt;BR /&gt;
| timechart span=1mon avg(msecs) AS avg&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2015 14:47:56 GMT</pubDate>
    <dc:creator>HeinzWaescher</dc:creator>
    <dc:date>2015-07-15T14:47:56Z</dc:date>
    <item>
      <title>Single trend values from day to day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Single-trend-values-from-day-to-day/m-p/123980#M33484</link>
      <description>&lt;P&gt;Hi. I want to display two figures of the total avg per day and display from previous day.  With showing a percentage in green or red weather its better or worse than the day before...&lt;/P&gt;

&lt;P&gt;My current search is like &lt;/P&gt;

&lt;P&gt;......... | bucket _time span=1d | stats avg(msecs) AS Total_avg&lt;/P&gt;

&lt;P&gt;This displays total average how do I display figures for each month.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Single-trend-values-from-day-to-day/m-p/123980#M33484</guid>
      <dc:creator>neilhiley</dc:creator>
      <dc:date>2020-09-29T06:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Single trend values from day to day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Single-trend-values-from-day-to-day/m-p/123981#M33485</link>
      <description>&lt;P&gt;You can use a timechart to calculate the averages and the streamstats command to calculate a daily ratio:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ...| timechart span=1d avg(msecs) AS avg
 | streamstats current=f global=f window=1 latest(avg) as previous_day_avg
 | eval ratio=round(avg/previous_day_avg,2)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To do it per month use:&lt;BR /&gt;
| timechart span=1mon avg(msecs) AS avg&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2015 14:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Single-trend-values-from-day-to-day/m-p/123981#M33485</guid>
      <dc:creator>HeinzWaescher</dc:creator>
      <dc:date>2015-07-15T14:47:56Z</dc:date>
    </item>
  </channel>
</rss>

