<?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: Peak hour count of most Visited Pages in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492495#M137378</link>
    <description>&lt;P&gt;Try this&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
| bucket span=1h _time
| stats count as hour_count by _time req_content
| stats sum(hour_count) as total_count max(hour_count) as max_per_hour by req_content
| sort - total_count limit=100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 Oct 2019 13:50:22 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-10-03T13:50:22Z</dc:date>
    <item>
      <title>Peak hour count of most Visited Pages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492493#M137376</link>
      <description>&lt;P&gt;Hi, I am working on a query to get the peak hour count of of the top 100 visited pages on my website and i want this together in a single table.&lt;BR /&gt;
In simple terms what i want is a table with three columns -&lt;BR /&gt;
1. req_content (visited page)&lt;BR /&gt;
2. Total count of this visited page (suppose in last 7 days)&lt;BR /&gt;
3. Peak hour count of this visited page (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. I have this below query which gives the top 100 visited pages but I also want the peak hour count alongside it 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;Any help is appreciated.&lt;BR /&gt;
@David &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; &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492493#M137376</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T02:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hour count of most Visited Pages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492494#M137377</link>
      <description>&lt;P&gt;Use the &lt;CODE&gt;date_hour&lt;/CODE&gt; and &lt;CODE&gt;date_day&lt;/CODE&gt; fields like this.. &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 by date_hour, req_content, date_day
| eventstats max(date_hour) AS date_hour by date_day
| sort - count limit=100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is untested and may need to be adjusted  &lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492494#M137377</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-10-03T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hour count of most Visited Pages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492495#M137378</link>
      <description>&lt;P&gt;Try this&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
| bucket span=1h _time
| stats count as hour_count by _time req_content
| stats sum(hour_count) as total_count max(hour_count) as max_per_hour by req_content
| sort - total_count limit=100
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Oct 2019 13:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492495#M137378</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-10-03T13:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hour count of most Visited Pages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492496#M137379</link>
      <description>&lt;P&gt;@somesoni2 This is brilliant stuff. Thank you very much. This is exactly what i was looking for. Only  disappointed that i couldn't think of this.&lt;BR /&gt;
Thanks again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492496#M137379</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-10-03T14:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Peak hour count of most Visited Pages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492497#M137380</link>
      <description>&lt;P&gt;Thanks @skoelpin for your response. I have just got it working with the query commented by somesoni. But thanks anyways for looking.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Peak-hour-count-of-most-Visited-Pages/m-p/492497#M137380</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-10-03T14:28:20Z</dc:date>
    </item>
  </channel>
</rss>

