<?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: search query based on response time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25480#M4811</link>
    <description>&lt;P&gt;adding limit=10 to the sort command does the same as head but is more efficient as splunk doesn't have to sort all lines.&lt;/P&gt;

&lt;P&gt;The top comand by default returns 10 but you can change it by adding limit=xx to any number you want.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Apr 2012 14:46:24 GMT</pubDate>
    <dc:creator>BobM</dc:creator>
    <dc:date>2012-04-13T14:46:24Z</dc:date>
    <item>
      <title>search query based on response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25477#M4808</link>
      <description>&lt;P&gt;I need to know the pages, along with the count of how many times their response time exceeded 100. I need the top 10 such pages ordered by their count. I wrote the following search query, but did not get success. Please help.&lt;/P&gt;

&lt;P&gt;...| eval time_sec = round(time_taken/1000) | where time_sec &amp;gt; 100 | stats count as cnt by cs_uri_stem |  sort cnt 10 - &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:40:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25477#M4808</guid>
      <dc:creator>subhadipc</dc:creator>
      <dc:date>2020-09-28T11:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: search query based on response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25478#M4809</link>
      <description>&lt;P&gt;The only thing I can see wrong (assuming the fields exist in your data) is the sort command.&lt;BR /&gt;
Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| sort - cnt limit=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but it would probably be easier to use the top command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval time_sec = round(time_taken/1000) | where time_sec &amp;gt; 100 | top cs_uri_stem showperc=f
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 15:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25478#M4809</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2012-04-12T15:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: search query based on response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25479#M4810</link>
      <description>&lt;P&gt;Another way is to write the following query:&lt;/P&gt;

&lt;P&gt;| eval time_sec = round(time_taken/1000) | where time_sec &amp;gt; 100 | where time_sec &amp;gt; 100 | stats count by cs_uri_stem | sort - count | head xx&lt;/P&gt;

&lt;P&gt;Using this, one may replace xx with the number, e.g. 10 as in the question&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25479#M4810</guid>
      <dc:creator>subhadipc</dc:creator>
      <dc:date>2020-09-28T11:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: search query based on response time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25480#M4811</link>
      <description>&lt;P&gt;adding limit=10 to the sort command does the same as head but is more efficient as splunk doesn't have to sort all lines.&lt;/P&gt;

&lt;P&gt;The top comand by default returns 10 but you can change it by adding limit=xx to any number you want.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2012 14:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-query-based-on-response-time/m-p/25480#M4811</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2012-04-13T14:46:24Z</dc:date>
    </item>
  </channel>
</rss>

