<?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: extract no. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400658#M190869</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Try the above rex, which extracts the required string with a minimum steps&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/ULGqk2/1"&gt;https://regex101.com/r/ULGqk2/1&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 15:15:01 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-07-19T15:15:01Z</dc:date>
    <item>
      <title>extract no.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400654#M190865</link>
      <description>&lt;P&gt;hi all &lt;BR /&gt;
I have events in json format need to extract number from this sip:&lt;A href="mailto:+1234566@12.23.34.45"&gt;+1234566@12.23.34.45&lt;/A&gt; &lt;BR /&gt;
example: i need +1234566 from this any regex exp for this ..... field name is "Routing-Number"&lt;BR /&gt;
thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 18:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400654#M190865</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2019-07-18T18:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: extract no.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400655#M190866</link>
      <description>&lt;P&gt;You can use this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw "sip:(?&amp;lt;RoutingNumber&amp;gt;\S+)@"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 18:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400655#M190866</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-07-18T18:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: extract no.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400656#M190867</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this rex,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test="sip:+1234566@12.23.34.45" 
| rex field=test "sip:(?P&amp;lt;RoutingNumber&amp;gt;[^@]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400656#M190867</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-18T19:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: extract no.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400657#M190868</link>
      <description>&lt;P&gt;Dyude!&lt;/P&gt;

&lt;P&gt;You can try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| fields - _time 
| eval data="sip:+1234566@12.23.34.45" 
| rex field=data "sip\:\+(?P&amp;lt;Routing_Number&amp;gt;.*)\@"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400657#M190868</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-07-19T14:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: extract no.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400658#M190869</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Try the above rex, which extracts the required string with a minimum steps&lt;/P&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/ULGqk2/1"&gt;https://regex101.com/r/ULGqk2/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 15:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-no/m-p/400658#M190869</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-07-19T15:15:01Z</dc:date>
    </item>
  </channel>
</rss>

