<?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: Stats count by hourly trend list in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593368#M206523</link>
    <description>&lt;P&gt;So, if you want to show a table with a trend, how do you want to represent your trend? The example I gave shows you a trend of a rolling 8 hour average - you could use that or adjust it to your use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 23:06:12 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2022-04-11T23:06:12Z</dc:date>
    <item>
      <title>How to write Stats count by hourly trend list?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593238#M206482</link>
      <description>&lt;P&gt;Hello dears,&lt;/P&gt;
&lt;P&gt;Can i list search result with stat count like hourly trend ?&lt;/P&gt;
&lt;P&gt;Example;&lt;/P&gt;
&lt;P&gt;Hour : 00:00 EventCount: 10&lt;/P&gt;
&lt;P&gt;Hour : 01:00 EventCount: 15&lt;/P&gt;
&lt;P&gt;Hour : 02:00 EventCount: 23&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Hour : 23:00 EventCount : 127&lt;/P&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 15:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593238#M206482</guid>
      <dc:creator>corehan</dc:creator>
      <dc:date>2022-04-11T15:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Stats count by hourly trend list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593239#M206483</link>
      <description>&lt;P&gt;You can make trend lines on this sort of data. Are you looking to display a timechart and a trend or how do you want to visualise it?&lt;/P&gt;&lt;P&gt;This is an example that calcualates 24 randomly increasing values and then calculates the rolling 8 hour average trend and plots two lines on a line chart.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=24
| streamstats c
| eval count=(c)*((random()%c/10)+1)
| eval _time=now()-(3600*(24-c))
| streamstats window=8 avg(count) as trend
| fields - c&lt;/LI-CODE&gt;&lt;P&gt;It uses streamstats to do the trend calculation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 06:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593239#M206483</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-04-11T06:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Stats count by hourly trend list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593243#M206485</link>
      <description>&lt;P&gt;I'm creating a report ( save as search results as a Report) and scheduling "send mail" like inline table, if it not possible may be attached file fine for me.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 06:56:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593243#M206485</guid>
      <dc:creator>corehan</dc:creator>
      <dc:date>2022-04-11T06:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Stats count by hourly trend list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593368#M206523</link>
      <description>&lt;P&gt;So, if you want to show a table with a trend, how do you want to represent your trend? The example I gave shows you a trend of a rolling 8 hour average - you could use that or adjust it to your use case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 23:06:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593368#M206523</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-04-11T23:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Stats count by hourly trend list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593369#M206524</link>
      <description>&lt;P&gt;I want count events for each hour so i need the show hourly trend in table view. Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 23:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593369#M206524</guid>
      <dc:creator>corehan</dc:creator>
      <dc:date>2022-04-11T23:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stats count by hourly trend list</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593371#M206526</link>
      <description>&lt;P&gt;so, following on from your example data&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Hour : 00:00 EventCount: 10
Hour : 01:00 EventCount: 15
Hour : 02:00 EventCount: 23
.
.
Hour : 23:00 EventCount : 127&lt;/LI-CODE&gt;&lt;P&gt;do you want the 'trend' for 01:00 to show the difference (+5) to the previous hour and the same for 02:00 (+8) or as a percentage?&lt;/P&gt;&lt;P&gt;Anyway to simply calculate hourly differences, use any of&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;delta&lt;/LI&gt;&lt;LI&gt;autoregress&lt;/LI&gt;&lt;LI&gt;streamstats (as in my example)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 00:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-Stats-count-by-hourly-trend-list/m-p/593371#M206526</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-04-12T00:04:50Z</dc:date>
    </item>
  </channel>
</rss>

