<?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 Retrieve slow queries in splunk search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-slow-queries-in-splunk-search/m-p/87143#M22284</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I am very new to splunk and operating on thew following data. I want to retrieve SQL queries which take more than 4 secs. My data looks like this,&lt;/P&gt;

&lt;H1&gt;Time: 130114 18:25:24&lt;/H1&gt;

&lt;H1&gt;User@Host: web-03-prod-01[web-03-prod-01] @  [10.2.2.88]&lt;/H1&gt;

&lt;H1&gt;Query_time: 4.137378  Lock_time: 0.000114 Rows_sent: 248  Rows_examined: 1777155&lt;/H1&gt;

&lt;P&gt;How can I use &amp;gt; or &amp;lt; operator to retrieve data which has a Query_time value more than 4 secs.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:06:38 GMT</pubDate>
    <dc:creator>pgadge</dc:creator>
    <dc:date>2020-09-28T13:06:38Z</dc:date>
    <item>
      <title>Retrieve slow queries in splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-slow-queries-in-splunk-search/m-p/87143#M22284</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I am very new to splunk and operating on thew following data. I want to retrieve SQL queries which take more than 4 secs. My data looks like this,&lt;/P&gt;

&lt;H1&gt;Time: 130114 18:25:24&lt;/H1&gt;

&lt;H1&gt;User@Host: web-03-prod-01[web-03-prod-01] @  [10.2.2.88]&lt;/H1&gt;

&lt;H1&gt;Query_time: 4.137378  Lock_time: 0.000114 Rows_sent: 248  Rows_examined: 1777155&lt;/H1&gt;

&lt;P&gt;How can I use &amp;gt; or &amp;lt; operator to retrieve data which has a Query_time value more than 4 secs.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:06:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-slow-queries-in-splunk-search/m-p/87143#M22284</guid>
      <dc:creator>pgadge</dc:creator>
      <dc:date>2020-09-28T13:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve slow queries in splunk search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieve-slow-queries-in-splunk-search/m-p/87144#M22285</link>
      <description>&lt;P&gt;First make sure you have the query time extracted as a field. See the following section in the docs: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsatsearchtime"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsatsearchtime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then you can just do&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;query_time&amp;gt;4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in your search.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieve-slow-queries-in-splunk-search/m-p/87144#M22285</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-15T10:28:10Z</dc:date>
    </item>
  </channel>
</rss>

