<?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: How to extract only IP's from text? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402095#M116358</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;P&gt;If this is to be extracted from raw data (_raw field),&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search 
| rex "URL\:\s*(?&amp;lt;IP_Address&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this is to be extracted from some other field (for example from field name "Message"),&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search 
| rex field=Message "URL\:\s*(?&amp;lt;IP_Address&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Aug 2018 19:59:44 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-08-14T19:59:44Z</dc:date>
    <item>
      <title>How to extract only IP's from text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402094#M116357</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;trans(776800911)[10.173.36.75]: Request processing failed: Network Error, from URL: 10.173.36.73:57743
trans(776800912)[10.173.36.75]: Request processing failed: Network Error, from URL: 10.173.36.74:57743
trans(776800913)[10.173.36.75]: Request processing failed: Network Error, from URL: 10.173.36.75:57743
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402094#M116357</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2018-08-14T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only IP's from text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402095#M116358</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;P&gt;If this is to be extracted from raw data (_raw field),&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search 
| rex "URL\:\s*(?&amp;lt;IP_Address&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this is to be extracted from some other field (for example from field name "Message"),&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search 
| rex field=Message "URL\:\s*(?&amp;lt;IP_Address&amp;gt;\d+\.\d+\.\d+\.\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402095#M116358</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-08-14T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only IP's from text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402096#M116359</link>
      <description>&lt;P&gt;Thanks a lot for quick response. It really helps &lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402096#M116359</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2018-08-14T20:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only IP's from text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402097#M116360</link>
      <description>&lt;P&gt;Could you please explain  how this works ==&amp;gt; \s*(?\d+.\d+.\d+.\d+)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402097#M116360</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2018-08-14T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract only IP's from text?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402098#M116361</link>
      <description>&lt;P&gt;See regex101.com&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; \s = space
 \d+ = any number of digits
 \. = dot
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This regex could identify non-ip addresses too.  For example, it would match 1234.5678.9012.34567890 too, which is clearly not an up address.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 22:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-only-IP-s-from-text/m-p/402098#M116361</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2018-08-14T22:42:31Z</dc:date>
    </item>
  </channel>
</rss>

