<?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: Regex first part of the URL in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/550327#M156167</link>
    <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 05:44:55 GMT</pubDate>
    <dc:creator>ebs</dc:creator>
    <dc:date>2021-05-04T05:44:55Z</dc:date>
    <item>
      <title>Is there a way to regex first part of the URL?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/550290#M156156</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All my URLs have this general format &lt;A href="https://value.company.com.au" target="_blank" rel="noopener"&gt;https://value.company.com.au/etc/&lt;/A&gt;&amp;nbsp;Is there a way I can extract URLs and always stop at the .au but also have this included in the field? Some differ with a port at the end so its goes&amp;nbsp;&lt;A href="https://value.company.com.au" target="_blank" rel="noopener"&gt;https://value.company.com.au&lt;/A&gt;:9001 but I don't want the port or anything after the /.&lt;/P&gt;
&lt;P&gt;Do you have any recommendations on what the regex would look like?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 13:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/550290#M156156</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2023-04-28T13:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex first part of the URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/550294#M156159</link>
      <description>&lt;LI-CODE lang="markup"&gt;(?&amp;lt;url&amp;gt;https?:\/\/[^:\/]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 03 May 2021 23:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/550294#M156159</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-03T23:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regex first part of the URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/550327#M156167</link>
      <description>&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 05:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/550327#M156167</guid>
      <dc:creator>ebs</dc:creator>
      <dc:date>2021-05-04T05:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regex first part of the URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/641641#M222265</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for that, but it not works on my Splunk research, I get the following message :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error in 'SearchParser': Missing a search command before '^'. Error at position '86' of search query 'search index=* sourcetype="os_win_wks:java:trace" ...{snipped} {errorcontext = tps?:\/\\[^:\/]+)}'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know why ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 17:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/641641#M222265</guid>
      <dc:creator>Badab</dc:creator>
      <dc:date>2023-04-27T17:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regex first part of the URL</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/641653#M222267</link>
      <description>&lt;P&gt;Because you are not using it to extract the field correctly. Rather than trying to extend someone else's question, please ask a fresh question where you can define your usecase more fully.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 18:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-regex-first-part-of-the-URL/m-p/641653#M222267</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-04-27T18:45:52Z</dc:date>
    </item>
  </channel>
</rss>

