<?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 to extract numbers correctly in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497801#M138663</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;
I have this field in my log: callerSipNumber="18121710_text". How should I extract "18121710" and name it "number"?&lt;BR /&gt;
I've tried  &lt;STRONG&gt;|rex field=callerSipNumber "((?)[_\w+])"&lt;/STRONG&gt;. But it didn't give anything. Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:39:51 GMT</pubDate>
    <dc:creator>pomazanelvira</dc:creator>
    <dc:date>2020-09-30T04:39:51Z</dc:date>
    <item>
      <title>How to extract numbers correctly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497801#M138663</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;
I have this field in my log: callerSipNumber="18121710_text". How should I extract "18121710" and name it "number"?&lt;BR /&gt;
I've tried  &lt;STRONG&gt;|rex field=callerSipNumber "((?)[_\w+])"&lt;/STRONG&gt;. But it didn't give anything. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:39:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497801#M138663</guid>
      <dc:creator>pomazanelvira</dc:creator>
      <dc:date>2020-09-30T04:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numbers correctly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497802#M138664</link>
      <description>&lt;P&gt;&lt;CODE&gt;| rex field=callerSipNumber "(?&amp;lt;number&amp;gt;\d+)"&lt;/CODE&gt; will do it.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 14:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497802#M138664</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-19T14:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numbers correctly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497803#M138665</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test="callerSipNumber=\"18121710_text\"" 
| rex field=test "callerSipNumber=\"(?P&amp;lt;result&amp;gt;[\d]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:46:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497803#M138665</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-03-19T15:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numbers correctly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497804#M138666</link>
      <description>&lt;P&gt;thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497804#M138666</guid>
      <dc:creator>pomazanelvira</dc:creator>
      <dc:date>2020-03-19T15:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract numbers correctly</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497805#M138667</link>
      <description>&lt;P&gt;thank u for "makeresults" function&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 15:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-numbers-correctly/m-p/497805#M138667</guid>
      <dc:creator>pomazanelvira</dc:creator>
      <dc:date>2020-03-19T15:48:28Z</dc:date>
    </item>
  </channel>
</rss>

