<?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: Regex help to extract number in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173078#M49635</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex ": (?&amp;lt;decode_time&amp;gt;\d+)ms$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Aug 2014 13:25:27 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-08-06T13:25:27Z</dc:date>
    <item>
      <title>Regex help to extract number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173077#M49634</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;My logs contain some sentence like :&lt;BR /&gt;
"2014-07-22 14:47:10,783 INFO  [LoggingInterceptor]|EXIT: CmsXwbDecodingPayloadDriver.decode() : 15ms"&lt;/P&gt;

&lt;P&gt;I want to extract the '15' (from '15ms') in a field "decode_time" and display the result for each corresponding event.&lt;/P&gt;

&lt;P&gt;I am cleary not confident with regular expressions.&lt;/P&gt;

&lt;P&gt;What should I do ?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:16:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173077#M49634</guid>
      <dc:creator>splunksogetiht</dc:creator>
      <dc:date>2014-08-06T13:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help to extract number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173078#M49635</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex ": (?&amp;lt;decode_time&amp;gt;\d+)ms$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:25:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173078#M49635</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-06T13:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help to extract number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173079#M49636</link>
      <description>&lt;P&gt;Something like this should do the job.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "(?&amp;lt;decode_time&amp;gt;\d+)ms$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173079#M49636</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-08-06T13:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help to extract number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173080#M49637</link>
      <description>&lt;P&gt;Nice !&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-to-extract-number/m-p/173080#M49637</guid>
      <dc:creator>splunksogetiht</dc:creator>
      <dc:date>2014-08-06T13:33:48Z</dc:date>
    </item>
  </channel>
</rss>

