<?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 Field Parsing Address for Numbers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472773#M81247</link>
    <description>&lt;P&gt;I'm fairly new to Splunk. I have a field (address). How can I parse just the all numbers from an address line to a new field (so I can list it later in a table) ? &lt;/P&gt;

&lt;P&gt;i.e. 123 W Smith St #1&lt;/P&gt;

&lt;P&gt;Would become:&lt;/P&gt;

&lt;P&gt;1231&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2020 07:02:19 GMT</pubDate>
    <dc:creator>phandnny</dc:creator>
    <dc:date>2020-02-15T07:02:19Z</dc:date>
    <item>
      <title>Field Parsing Address for Numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472773#M81247</link>
      <description>&lt;P&gt;I'm fairly new to Splunk. I have a field (address). How can I parse just the all numbers from an address line to a new field (so I can list it later in a table) ? &lt;/P&gt;

&lt;P&gt;i.e. 123 W Smith St #1&lt;/P&gt;

&lt;P&gt;Would become:&lt;/P&gt;

&lt;P&gt;1231&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 07:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472773#M81247</guid>
      <dc:creator>phandnny</dc:creator>
      <dc:date>2020-02-15T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parsing Address for Numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472774#M81248</link>
      <description>&lt;P&gt;This should do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval numbers=address | rex field=numbers mode=sed "s/(\D)//g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Feb 2020 13:24:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472774#M81248</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-02-15T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parsing Address for Numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472775#M81249</link>
      <description>&lt;P&gt;Yeah, many roads lead to this particular Rome. Another one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval numbers = replace(address, "\D+", "")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Feb 2020 13:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472775#M81249</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-02-15T13:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Field Parsing Address for Numbers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472776#M81250</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Try this also&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval address ="123 W Smith St #1" 
| rex field=address max_match=0 "(?P&amp;lt;result&amp;gt;[0-9]+)" 
| eval result= replace(tostring(result),"\s","") 
| table address result
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Feb 2020 14:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-Parsing-Address-for-Numbers/m-p/472776#M81250</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-02-15T14:20:15Z</dc:date>
    </item>
  </channel>
</rss>

