<?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: Average of web requests blocked - span of 10 minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Average-of-web-requests-blocked-span-of-10-minutes/m-p/319643#M95558</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index-example  dest_interface=wan_if sourcetype=source_example action=blocked subtype=webfilter
| bucket _time span=10m
| stats count BY source_ip URL _time
| stats avg(count) AS count BY source_ip URL
| where count &amp;gt; 50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Sep 2017 02:18:50 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-09-07T02:18:50Z</dc:date>
    <item>
      <title>Average of web requests blocked - span of 10 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-of-web-requests-blocked-span-of-10-minutes/m-p/319642#M95557</link>
      <description>&lt;P&gt;Hi mates,&lt;/P&gt;

&lt;P&gt;I'm trying to get the most 10 IP addresses with blocked web requests during a month, but the threshold should be using the count of requests during a 10 minutes window.&lt;/P&gt;

&lt;P&gt;This is my query so far&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index-example  dest_interface=wan_if sourcetype=source_example action=blocked subtype=webfilter | bucket _time span=10m
| stats count by source_ip URL 
| where count &amp;gt; 50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I use the query above, I will get the IP addresses and URL visited. But, if I search for a month using this query, I will get a sum of the "count" value, getting results of 7,000 for example.&lt;/P&gt;

&lt;P&gt;I would like to get an average of the count value, and this way I can see which IP addresses are involved in this type of traffic.&lt;/P&gt;

&lt;P&gt;I read about using avg(field), but I cannot decide where to use it. I thought about including "stats avg(count)" but I cannot get results.&lt;/P&gt;

&lt;P&gt;Please, any idea would be appreciated.&lt;/P&gt;

&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 23:32:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-of-web-requests-blocked-span-of-10-minutes/m-p/319642#M95557</guid>
      <dc:creator>rookie507SL</dc:creator>
      <dc:date>2017-09-06T23:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Average of web requests blocked - span of 10 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-of-web-requests-blocked-span-of-10-minutes/m-p/319643#M95558</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index-example  dest_interface=wan_if sourcetype=source_example action=blocked subtype=webfilter
| bucket _time span=10m
| stats count BY source_ip URL _time
| stats avg(count) AS count BY source_ip URL
| where count &amp;gt; 50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2017 02:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-of-web-requests-blocked-span-of-10-minutes/m-p/319643#M95558</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-07T02:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Average of web requests blocked - span of 10 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Average-of-web-requests-blocked-span-of-10-minutes/m-p/319644#M95559</link>
      <description>&lt;P&gt;Sorry for the late response.&lt;/P&gt;

&lt;P&gt;Really thank you for your reply, it worked.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 13:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Average-of-web-requests-blocked-span-of-10-minutes/m-p/319644#M95559</guid>
      <dc:creator>rookie507SL</dc:creator>
      <dc:date>2017-09-13T13:52:57Z</dc:date>
    </item>
  </channel>
</rss>

