<?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 STATS function in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90586#M23270</link>
    <description>&lt;P&gt;Hi, Is there a way to find out the max response time during a 30-minute bucket and its associated url from the web server log?&lt;/P&gt;

&lt;P&gt;I tried to use the search string below but seems to be not working. Please advise. Thanks!&lt;/P&gt;

&lt;P&gt;sourcetype="access_log" | bucket _time span=30m | STATS max(TotalResponseTime), url by _time&lt;/P&gt;</description>
    <pubDate>Mon, 15 Oct 2012 16:40:04 GMT</pubDate>
    <dc:creator>shangshin</dc:creator>
    <dc:date>2012-10-15T16:40:04Z</dc:date>
    <item>
      <title>STATS function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90586#M23270</link>
      <description>&lt;P&gt;Hi, Is there a way to find out the max response time during a 30-minute bucket and its associated url from the web server log?&lt;/P&gt;

&lt;P&gt;I tried to use the search string below but seems to be not working. Please advise. Thanks!&lt;/P&gt;

&lt;P&gt;sourcetype="access_log" | bucket _time span=30m | STATS max(TotalResponseTime), url by _time&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 16:40:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90586#M23270</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-10-15T16:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: STATS function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90587#M23271</link>
      <description>&lt;P&gt;Does .... STATS max(TotalResponseTime) by _time url work for you?&lt;BR /&gt;
I think its trying to use 'url' as an argument?&lt;BR /&gt;
Br&lt;BR /&gt;
Dave S&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 16:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90587#M23271</guid>
      <dc:creator>DaveSavage</dc:creator>
      <dc:date>2012-10-15T16:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: STATS function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90588#M23272</link>
      <description>&lt;P&gt;Unfortunately, this is not something I need. I only care about the url with max response time.&lt;BR /&gt;
I have various types of urls in the web access log. If I add the url at the end of the search string, I will have too many results.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 17:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90588#M23272</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-10-15T17:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: STATS function</title>
      <link>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90589#M23273</link>
      <description>&lt;P&gt;Use eventstats to preserve the url and then grab only those urls where the response time equals the max. If there are multiple urls with the same TotalResponseTime, then you could still get multiple urls for the same time range, but that would seem unlikely.&lt;/P&gt;

&lt;P&gt;sourcetype="access_log" | bucket _time span=30m | eventstats max(TotalResponseTime) as maxtim by _time | where TotalResponseTime=maxtim |table _time,TotalResponseTime,url&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 14:35:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/STATS-function/m-p/90589#M23273</guid>
      <dc:creator>reed_kelly</dc:creator>
      <dc:date>2012-10-16T14:35:50Z</dc:date>
    </item>
  </channel>
</rss>

