<?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 How do I extract and compare numeric values from a Search result? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-and-compare-numeric-values-from-a-Search-result/m-p/83205#M21167</link>
    <description>&lt;P&gt;Log: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-09-28 16:13:12,399 INFO   [ProxyImpl] [INT1] [Interface] Time taken by Call: 743 milliseconds
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Requirement: extract the numeric value (743 here) and compare with some threshold value (say 800)&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2011 20:50:21 GMT</pubDate>
    <dc:creator>anirbanukil</dc:creator>
    <dc:date>2011-09-28T20:50:21Z</dc:date>
    <item>
      <title>How do I extract and compare numeric values from a Search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-and-compare-numeric-values-from-a-Search-result/m-p/83205#M21167</link>
      <description>&lt;P&gt;Log: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011-09-28 16:13:12,399 INFO   [ProxyImpl] [INT1] [Interface] Time taken by Call: 743 milliseconds
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Requirement: extract the numeric value (743 here) and compare with some threshold value (say 800)&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 20:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-and-compare-numeric-values-from-a-Search-result/m-p/83205#M21167</guid>
      <dc:creator>anirbanukil</dc:creator>
      <dc:date>2011-09-28T20:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract and compare numeric values from a Search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-and-compare-numeric-values-from-a-Search-result/m-p/83206#M21168</link>
      <description>&lt;P&gt;The most expedient way of doing this is with the &lt;CODE&gt;rex&lt;/CODE&gt; and &lt;CODE&gt;where&lt;/CODE&gt; commands.  You can write a search similar to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "Time taken by Call: (?&amp;lt;call_time&amp;gt;\d+) milliseconds"
| where call_time &amp;gt; 800
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;rex&lt;/CODE&gt; command can be replaced with a permanent field extraction defined in &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 21:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-and-compare-numeric-values-from-a-Search-result/m-p/83206#M21168</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-09-28T21:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract and compare numeric values from a Search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-and-compare-numeric-values-from-a-Search-result/m-p/83207#M21169</link>
      <description>&lt;P&gt;Thanks a lot.... It worked...&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 14:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-and-compare-numeric-values-from-a-Search-result/m-p/83207#M21169</guid>
      <dc:creator>anirbanukil</dc:creator>
      <dc:date>2011-09-29T14:37:48Z</dc:date>
    </item>
  </channel>
</rss>

