<?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 domain from field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170675#M48844</link>
    <description>&lt;P&gt;try the updated one.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2014 21:40:33 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-02-28T21:40:33Z</dc:date>
    <item>
      <title>extract domain from field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170672#M48841</link>
      <description>&lt;P&gt;Could someone help me with a rex to extract the domain out of a http or https URL?  For example, I need '&lt;A href="http://www.test.com"&gt;www.test.com&lt;/A&gt;' to be extracted from each of the following:&lt;/P&gt;

&lt;P&gt;http ://&lt;A href="http://www.test.com?id=6"&gt;www.test.com?id=6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
http ://&lt;A href="http://www.test.com/6/7"&gt;www.test.com/6/7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
https ://&lt;A href="http://www.test.com"&gt;www.test.com&lt;/A&gt;  &lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 20:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170672#M48841</guid>
      <dc:creator>foreright360</dc:creator>
      <dc:date>2014-02-28T20:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: extract domain from field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170673#M48842</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search.. |rex field=Field_name "\/\/(?&amp;lt;URL&amp;gt;\\w+[\\.\\w]+)"|table URL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Updated:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search.. |rex field=Field_name "\/\/(?&amp;lt;URL&amp;gt;\\w+[\\.-\\w]+)"|table URL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Feb 2014 20:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170673#M48842</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-02-28T20:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: extract domain from field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170674#M48843</link>
      <description>&lt;P&gt;Works great except for domains with a '-' in it.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 21:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170674#M48843</guid>
      <dc:creator>foreright360</dc:creator>
      <dc:date>2014-02-28T21:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: extract domain from field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170675#M48844</link>
      <description>&lt;P&gt;try the updated one.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 21:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-domain-from-field/m-p/170675#M48844</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-28T21:40:33Z</dc:date>
    </item>
  </channel>
</rss>

