<?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: List of top URLs with hourly count &amp;gt; 50 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493776#M137694</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=temp_index source="/app/request.log" host="server-1b*" GET
| rex field=_raw "GET (?&amp;lt;requested_content&amp;gt;[^\s]+)"
| bucket span=1h _time
| stats count as hour_count by _time requested_content
| where hour_content&amp;gt;50 
| sort 100 -hour_content
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=temp_index source="/app/request.log" host="server-1b*" GET
| rex field=_raw "GET (?&amp;lt;requested_content&amp;gt;[^\s]+)"
| bucket span=1h _time
| stats count as hour_count by _time requested_content
| where hour_content&amp;gt;50 | stats max(hour_content) as hour_content by requested_content
| sort 100 -hour_content
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Mar 2020 16:38:07 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-03-10T16:38:07Z</dc:date>
    <item>
      <title>List of top URLs with hourly count &gt; 50</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493774#M137692</link>
      <description>&lt;P&gt;Hi, I have a ask where I need to find out top 100 URL's who have hourly hits more than 50 on the server means if a particular URL is requested more than 50 times in an hour then I need to list it. &lt;BR /&gt;
And I need to list these kind of top 100 URL's which are most visited.&lt;BR /&gt;
Any help is appreciated. Below is the query I have but it is not giving what i want -&lt;/P&gt;

&lt;P&gt;index=temp_index source="/app/request.log" host="server-1b*" GET &lt;BR /&gt;
| rex field=_raw "GET (?[^\s]+)" &lt;BR /&gt;
| bucket span=1h _time &lt;BR /&gt;
| stats count as hour_count by _time requested_content &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493774#M137692</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-09-30T04:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: List of top URLs with hourly count &gt; 50</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493775#M137693</link>
      <description>&lt;P&gt;Hi @Shashank_87,&lt;/P&gt;

&lt;P&gt;If you are extracting URL from _raw and counting it then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=temp_index source="/app/request.log" host="server-1b*" GET
| rex field=_raw "GET (?&amp;lt;URL&amp;gt;[^\s]+)"
| bucket span=1h _time
| stats count as hour_count by _time URL
| where hour_count &amp;gt; 50
| top 100 URL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493775#M137693</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-10T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: List of top URLs with hourly count &gt; 50</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493776#M137694</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=temp_index source="/app/request.log" host="server-1b*" GET
| rex field=_raw "GET (?&amp;lt;requested_content&amp;gt;[^\s]+)"
| bucket span=1h _time
| stats count as hour_count by _time requested_content
| where hour_content&amp;gt;50 
| sort 100 -hour_content
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=temp_index source="/app/request.log" host="server-1b*" GET
| rex field=_raw "GET (?&amp;lt;requested_content&amp;gt;[^\s]+)"
| bucket span=1h _time
| stats count as hour_count by _time requested_content
| where hour_content&amp;gt;50 | stats max(hour_content) as hour_content by requested_content
| sort 100 -hour_content
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493776#M137694</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-03-10T16:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: List of top URLs with hourly count &gt; 50</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493777#M137695</link>
      <description>&lt;P&gt;@manjunathmeti  Hi Manju, this has worked perfectly. Thanks very much.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493777#M137695</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-03-11T09:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: List of top URLs with hourly count &gt; 50</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493778#M137696</link>
      <description>&lt;P&gt;@somesoni2 Hi, this is also one of the solution and works in my situation but it gives multiple rows with the same URL which is fine because duplicates can be removed.&lt;BR /&gt;
Thanks very much for the response.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493778#M137696</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2020-03-11T09:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: List of top URLs with hourly count &gt; 50</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493779#M137697</link>
      <description>&lt;P&gt;You're welcome!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-of-top-URLs-with-hourly-count-gt-50/m-p/493779#M137697</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-11T09:26:43Z</dc:date>
    </item>
  </channel>
</rss>

