<?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 to report a busiest/peak hour for each day for the last 30 days? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486728#M136129</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults count=2
| streamstats count
| eval _time = if (count==2,relative_time(_time,"-30d@d"), relative_time(_time,"@d"))
| makecontinuous span=1m
| eval count = random() % 2
| eval value = if(count==0,"ok",NULL)
| table _time value
| rename COMMENT AS "this is sample data")
| timechart span=1h count(value) as count
| eval days = strftime(_time, "%e")
| eventstats max(count) as max_count by days
| chart values(eval(if(max_count==count,_time,NULL))) as max_date values(max_count) as max_count by days
| fieldformat max_date=strftime(max_date,"%F %H:%M")
| table max_date max_count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The output values is a little different, but it would be okay.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 12:19:53 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2019-11-19T12:19:53Z</dc:date>
    <item>
      <title>How to report a busiest/peak hour for each day for the last 30 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486727#M136128</link>
      <description>&lt;P&gt;Hi, I am trying to find the busiest time of the day for last 30 days. What i need is a table like this -&lt;/P&gt;

&lt;P&gt;Day PeakhourofTheDay count&lt;/P&gt;

&lt;P&gt;I have this query but it's not showing the peak hour in the table. Also i am not sure if it's correct. Please any help is appreciated.&lt;/P&gt;

&lt;P&gt;index=web_env sourcetype=ssl_access_combined &lt;BR /&gt;
| timechart span=1h count&lt;BR /&gt;
| timechart span=1d max(count)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486727#M136128</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T03:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to report a busiest/peak hour for each day for the last 30 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486728#M136129</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults count=2
| streamstats count
| eval _time = if (count==2,relative_time(_time,"-30d@d"), relative_time(_time,"@d"))
| makecontinuous span=1m
| eval count = random() % 2
| eval value = if(count==0,"ok",NULL)
| table _time value
| rename COMMENT AS "this is sample data")
| timechart span=1h count(value) as count
| eval days = strftime(_time, "%e")
| eventstats max(count) as max_count by days
| chart values(eval(if(max_count==count,_time,NULL))) as max_date values(max_count) as max_count by days
| fieldformat max_date=strftime(max_date,"%F %H:%M")
| table max_date max_count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The output values is a little different, but it would be okay.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486728#M136129</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-19T12:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to report a busiest/peak hour for each day for the last 30 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486729#M136130</link>
      <description>&lt;P&gt;@to4kawa thanks for the response but this is not what I am looking for and moreover this query is a bit complex and not very optimized if i have to run for a longer period.&lt;BR /&gt;
I have shared the working query but it's just that it is not showing the peak hour along with the day. I need something like this in atabular format -&lt;/P&gt;

&lt;P&gt;Day PeakhourofTheDay PeakHourCount&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486729#M136130</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-11-19T12:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to report a busiest/peak hour for each day for the last 30 days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486730#M136131</link>
      <description>&lt;P&gt;try rename and eval.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 12:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-report-a-busiest-peak-hour-for-each-day-for-the-last-30/m-p/486730#M136131</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-11-19T12:57:40Z</dc:date>
    </item>
  </channel>
</rss>

