<?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: Get domain name from urls in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504324#M140780</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;. It worked.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jun 2020 21:20:21 GMT</pubDate>
    <dc:creator>Sagarvadlamani</dc:creator>
    <dc:date>2020-06-14T21:20:21Z</dc:date>
    <item>
      <title>Get domain name from urls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504295#M140770</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying get the domain name alone from any given urls. Please see the list of url formats i'm dealing with and how i want the result to be.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://www.example.com:9090
https://abc.example-url.uk/username/test
https://test-url.web-url.ch/test
https://hello.example.co?test
https://test.example.com,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output for the URL field as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;www.example.com
abc.example-url.uk
test-url.web-url.ch
hello.example.co
test.example.com&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried the following rex&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex "Value1=https://(?P&amp;lt;URL&amp;gt;([\w]+\.[\w]+\.[\w]+))"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above won't pull anything like abc.example-url.uk &lt;STRONG&gt;or&lt;/STRONG&gt; test-url.web-url.ch. Looks like i'm missing something here. Can anyone please help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 06:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504295#M140770</guid>
      <dc:creator>Sagarvadlamani</dc:creator>
      <dc:date>2020-06-14T06:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain name from urls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504297#M140771</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/222318"&gt;@Sagarvadlamani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;try this regex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https:\/\/(?&amp;lt;domain&amp;gt;[^:\/\?,]*)&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/7XmpL4/1" target="_blank"&gt;https://regex101.com/r/7XmpL4/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 08:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504297#M140771</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-14T08:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain name from urls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504300#M140772</link>
      <description>&lt;P&gt;&lt;A href="https://community.splunk.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;filter=location&amp;amp;q=url%20rex&amp;amp;q=URL%20Rex&amp;amp;location=category:en-us&amp;amp;allow_punctuation=false" target="_blank"&gt;https://community.splunk.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;filter=location&amp;amp;q=url%20rex&amp;amp;q=URL%20Rex&amp;amp;location=category:en-us&amp;amp;allow_punctuation=false&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why not check first?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 08:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504300#M140772</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-14T08:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get domain name from urls</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504324#M140780</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;. It worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 21:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-domain-name-from-urls/m-p/504324#M140780</guid>
      <dc:creator>Sagarvadlamani</dc:creator>
      <dc:date>2020-06-14T21:20:21Z</dc:date>
    </item>
  </channel>
</rss>

