<?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 calculate peak hour count along with requested content in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492214#M194308</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/126621"&gt;@Keysofsandiego&lt;/a&gt;  for your response but I am not really sure if i am looking this. So in simple terms what i want is a table with three columns -&lt;BR /&gt;
1. req_content&lt;BR /&gt;
2. Total count of this req_content (suppose in last 7 days)&lt;BR /&gt;
3. Peak hour count of this req_content (suppose in last 7 days).&lt;/P&gt;

&lt;P&gt;Mainly the 1st and 3rd column and even if we don't get total count that's okay. The thing is i need to generate a report every 2 weeks with top 100 most visited pages and their peak hour count so that performance test team can have the latest data.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:22:37 GMT</pubDate>
    <dc:creator>Shashank_87</dc:creator>
    <dc:date>2020-09-30T02:22:37Z</dc:date>
    <item>
      <title>How to calculate peak hour count along with requested content</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492212#M194306</link>
      <description>&lt;P&gt;Hi, I am working on a query to get the peak hour count of of the top 100 requested pages on my website and i want this together in a single table.&lt;BR /&gt;
I have a below query which fetches my top 100 requested pages but what i want is their peak hour count as well alongside in a separate column.&lt;/P&gt;

&lt;P&gt;index=test sourcetype=access_combined  requested_content="/*" NOT (images OR js OR css OR png OR gif OR json OR jpg OR woff OR eot OR ico OR ttf OR svg OR pdf OR php OR jpeg OR txt) status=200 &lt;BR /&gt;
| stats count by req_content&lt;BR /&gt;
| sort - count limit=100&lt;/P&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/182782"&gt;@Sukisen1981&lt;/a&gt; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; - hey Guys any help here??&lt;/P&gt;

&lt;P&gt;What i am looking is something like this?&lt;/P&gt;

&lt;P&gt;req_content     Totalcount       PeakHourCount    &lt;/P&gt;

&lt;P&gt;Please let me know if someone can help&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:22:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492212#M194306</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T02:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak hour count along with requested content</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492213#M194307</link>
      <description>&lt;P&gt;Hi Shashank_87, &lt;BR /&gt;
I am not 100% sure if this is what you are looking for  but check this run anywhere example... might get you started &lt;BR /&gt;
Its basically your search just adding the max value (of the hourly count) for that day next to the count per hour. I think this is what you are looking for. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=_* sourcetype=splunkd_ui_access
    uri="/en-US/app/search/ops_dc_status/_current"
     | stats count as TotalHitsPerHour by date_hour, date_mday, uri
     | eventstats max(TotalHitsPerHour) as maxDailyCt by date_mday, uri
     | table date_hour, date_mday, uri, TotalHitsPerHour, maxDailyCt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or try this example filled out for your usecase. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=test sourcetype=access_combined requested_content="/*" NOT (images OR js OR css OR png OR gif OR json OR jpg OR woff OR eot OR ico OR ttf OR svg OR pdf OR php OR jpeg OR txt) status=200
  | stats count as Totalcount by date_hour, date_mday, req_content
  | eventstats maxTotalcount as PeakHourCount by date_mday, req_content
  | table date_hour, date_mday, req_content, Totalcount, PeakHourCount
| sort - count limit=100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;happy splunking! &lt;BR /&gt;
=)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 17:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492213#M194307</guid>
      <dc:creator>Keysofsandiego</dc:creator>
      <dc:date>2019-10-02T17:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak hour count along with requested content</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492214#M194308</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/126621"&gt;@Keysofsandiego&lt;/a&gt;  for your response but I am not really sure if i am looking this. So in simple terms what i want is a table with three columns -&lt;BR /&gt;
1. req_content&lt;BR /&gt;
2. Total count of this req_content (suppose in last 7 days)&lt;BR /&gt;
3. Peak hour count of this req_content (suppose in last 7 days).&lt;/P&gt;

&lt;P&gt;Mainly the 1st and 3rd column and even if we don't get total count that's okay. The thing is i need to generate a report every 2 weeks with top 100 most visited pages and their peak hour count so that performance test team can have the latest data.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492214#M194308</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T02:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak hour count along with requested content</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492215#M194309</link>
      <description>&lt;P&gt;@to4kawa @Sukisen1981 @gcusello - hey Guys any help here??&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 08:58:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492215#M194309</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-10-03T08:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate peak hour count along with requested content</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492216#M194310</link>
      <description>&lt;P&gt;@Keysofsandiego Hey, let me know if you can help me with the query please.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-peak-hour-count-along-with-requested-content/m-p/492216#M194310</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-10-03T12:24:29Z</dc:date>
    </item>
  </channel>
</rss>

