<?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: Extracting domain name from URL in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/519282#M146223</link>
    <description>&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=LoiyiCVGLnw" target="_blank"&gt;https://www.youtube.com/watch?v=LoiyiCVGLnw&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Sep 2020 08:55:13 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-09-13T08:55:13Z</dc:date>
    <item>
      <title>Extracting domain name from URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/518990#M146130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a field with name URL and values are like this --&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/forums/postpage/choose-node" target="_blank"&gt;https://community.splunk.com/t5/forums/postpage/21321231312331112/id&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.google.com/search?rlz=1C1GCEA_enU" target="_blank"&gt;http://www.google.com/search?rlz=1C1GCEA_enU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I need to extract it like this (it can be http or https and it can be other tld too)-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/forums/postpage/choose-node" target="_blank"&gt;https://community.splunk.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.google.com/search?rlz=1C1GCEA_enU" target="_blank"&gt;http://www.google.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically need a rex like this - parta&lt;STRONG&gt;://&lt;/STRONG&gt;partb&lt;STRONG&gt;/&lt;/STRONG&gt;Ignorable_strings and then I'll concatenate parta and partb fields to get desired result. Someone please help.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 05:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/518990#M146130</guid>
      <dc:creator>pjtbasu</dc:creator>
      <dc:date>2020-09-11T05:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting domain name from URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/518996#M146133</link>
      <description>&lt;P&gt;| rex field=url&amp;nbsp;"^(?&amp;lt;main_domain&amp;gt;\w+\:\/\/[^\/]+)"&lt;/P&gt;&lt;P&gt;output will be extracted to new field called main_domain&lt;/P&gt;&lt;P&gt;if you need parta and partb and igorable_strings use below:&lt;/P&gt;&lt;P&gt;| rex field=url&amp;nbsp;"^(?&amp;lt;parta&amp;gt;\w+)\:\/\/(?&amp;lt;partb&amp;gt;[^\/]+)\/(?&amp;lt;ignorable_strings&amp;gt;.*)"&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 05:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/518996#M146133</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-11T05:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting domain name from URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/519281#M146222</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Possible for you to explain the parts of first regex like how it is working ? Are you aware of any specific documentation which will help me understand/learn complex splunk regex ?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 08:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/519281#M146222</guid>
      <dc:creator>pjtbasu</dc:creator>
      <dc:date>2020-09-13T08:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting domain name from URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/519282#M146223</link>
      <description>&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=LoiyiCVGLnw" target="_blank"&gt;https://www.youtube.com/watch?v=LoiyiCVGLnw&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 08:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-domain-name-from-URL/m-p/519282#M146223</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-13T08:55:13Z</dc:date>
    </item>
  </channel>
</rss>

