<?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: Need help with a greater than in seconds in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-a-greater-than-in-seconds/m-p/284948#M175611</link>
    <description>&lt;P&gt;Hope this helps:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=web- "\"response_code\": 5," OR "\"message\": \"Application Error\"" OR "\"response_code\": 0"\"total_time\" userloans
| rex field=_raw "\"total_time\":\s*(?&amp;lt;totalTime&amp;gt;[^,\s]+)"
| where totalTime &amp;gt; 9
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 11 Feb 2017 07:41:03 GMT</pubDate>
    <dc:creator>gokadroid</dc:creator>
    <dc:date>2017-02-11T07:41:03Z</dc:date>
    <item>
      <title>Need help with a greater than in seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-a-greater-than-in-seconds/m-p/284946#M175609</link>
      <description>&lt;P&gt;My search alert filter: host=web-* "\"response_code\": 5*," OR "\"message\": \"Application Error\"" OR "\"response_code\": 0"\"total_time\" userloans&lt;/P&gt;

&lt;P&gt;QUESTION. I need to modify my alert so it captures all responses that has greater than total_time of 9 secs (below sample). What should I add to capture this to my alert above? Any help would be great!&lt;/P&gt;

&lt;P&gt;E, [2017-02-11T03:09:33.426066 #58] ERROR -- : {&lt;BR /&gt;
  "url": "&lt;A href="http://12345/A.v.x455.adfadfr.co/loans/userloans" target="_blank"&gt;http://12345/A.v.x455.adfadfr.co/loans/userloans&lt;/A&gt;",&lt;BR /&gt;
  "method": "get",&lt;BR /&gt;
  "request_headers": {&lt;BR /&gt;
    "Content-Type": "application/json",&lt;BR /&gt;
    "client_ip": "[FILTERED]",&lt;BR /&gt;
    },&lt;BR /&gt;
  "request_body": null,&lt;BR /&gt;
  "response_code": 0,&lt;BR /&gt;
  "response_body": "",&lt;BR /&gt;
  "total_time": 9.0,&lt;BR /&gt;
  "starttransfer_time": 0.0,&lt;BR /&gt;
  "appconnect_time": 0.0,&lt;BR /&gt;
  "pretransfer_time": 0.0001,&lt;BR /&gt;
  "connect_time": 0.0,&lt;BR /&gt;
  "namelookup_time": 0.0,&lt;BR /&gt;
  "redirect_time": 0.0&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:46:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-a-greater-than-in-seconds/m-p/284946#M175609</guid>
      <dc:creator>trehman</dc:creator>
      <dc:date>2020-09-29T12:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a greater than in seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-a-greater-than-in-seconds/m-p/284947#M175610</link>
      <description>&lt;P&gt;If you don't have it already, you need to extract the total time into a field like below and filter on it&lt;/P&gt;

&lt;PRE&gt;your base search | rex "(?i)\Wtotal_time\W{2}(?P&amp;lt;TOTAL_TIME&amp;gt;\.\S+)\," | where TOTAL_TIME &amp;gt; 9&lt;/PRE&gt;

&lt;P&gt;The above rex might not be perfect, but you get the idea&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2017 07:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-a-greater-than-in-seconds/m-p/284947#M175610</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2017-02-11T07:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with a greater than in seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-with-a-greater-than-in-seconds/m-p/284948#M175611</link>
      <description>&lt;P&gt;Hope this helps:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=web- "\"response_code\": 5," OR "\"message\": \"Application Error\"" OR "\"response_code\": 0"\"total_time\" userloans
| rex field=_raw "\"total_time\":\s*(?&amp;lt;totalTime&amp;gt;[^,\s]+)"
| where totalTime &amp;gt; 9
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Feb 2017 07:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-with-a-greater-than-in-seconds/m-p/284948#M175611</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-02-11T07:41:03Z</dc:date>
    </item>
  </channel>
</rss>

