<?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: Can you help me come up with the regex to get the domain + scheme? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459663#M129725</link>
    <description>&lt;P&gt;@jtotzek, glad it worked for you. Please accepts answer to close the thread&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2018 15:50:10 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-11-06T15:50:10Z</dc:date>
    <item>
      <title>Can you help me come up with the regex to get the domain + scheme?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459660#M129722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I tried many things but I still cannot get to the correct result.&lt;/P&gt;

&lt;P&gt;my field value looks like this &lt;BR /&gt;
&lt;A href="http://34.223.245.254/path/user.html"&gt;http://34.223.245.254/path/user.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://sub.domain.com/D2-Client"&gt;http://sub.domain.com/D2-Client&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://sub.domain.ph"&gt;https://sub.domain.ph&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and in the output I just want &lt;BR /&gt;
&lt;A href="http://34.223.245.254"&gt;http://34.223.245.254&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://sub.domain.com"&gt;http://sub.domain.com&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://sub.domain.ph"&gt;https://sub.domain.ph&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;so far it looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BASE-SEARCH | rex field="MY_FIELD_NAME" "(REGEX)" | stats values("domain")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Nov 2018 11:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459660#M129722</guid>
      <dc:creator>jtotzek</dc:creator>
      <dc:date>2018-11-06T11:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me come up with the regex to get the domain + scheme?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459661#M129723</link>
      <description>&lt;P&gt;@jtotzek,&lt;/P&gt;

&lt;P&gt;Give this a try and see if it works,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=YOUR_FIELD_NAME "(?&amp;lt;domain&amp;gt;https?:\/\/[^\/]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Nov 2018 12:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459661#M129723</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-06T12:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me come up with the regex to get the domain + scheme?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459662#M129724</link>
      <description>&lt;P&gt;wow, perfect! I was almost there! thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 12:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459662#M129724</guid>
      <dc:creator>jtotzek</dc:creator>
      <dc:date>2018-11-06T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me come up with the regex to get the domain + scheme?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459663#M129725</link>
      <description>&lt;P&gt;@jtotzek, glad it worked for you. Please accepts answer to close the thread&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 15:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459663#M129725</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-06T15:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me come up with the regex to get the domain + scheme?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459664#M129726</link>
      <description>&lt;P&gt;@jtotzek, do you have any other question on this ? If not, kindly accept as  answer .&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 10:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459664#M129726</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-15T10:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me come up with the regex to get the domain + scheme?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459665#M129727</link>
      <description>&lt;P&gt;You can try -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;BASE-SEARCH | erex _raw url "http://34.223.245.254,http://sub.domain.com,https://sub.domain.ph"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Under Job you should see the generated regex...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-come-up-with-the-regex-to-get-the-domain-scheme/m-p/459665#M129727</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-11-15T14:42:47Z</dc:date>
    </item>
  </channel>
</rss>

