<?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 How to extract part of a URL and create alert. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655477#M226426</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following log lines:&lt;/P&gt;&lt;P&gt;2023-08-23 06:27:13,551 DEBUG [org.keycloak.protocol.oidc.utils.RedirectUtils] (executor-thread-70) replacing relative valid redirect with: https:// foo.com/admin/master/console/*&lt;/P&gt;&lt;P&gt;2023-08-23 06:28:04,446 DEBUG [io.quarkus.vertx.http.runtime.ForwardedParser] (executor-thread-70) Recalculated absoluteURI to https:// foo.com/admin/realms/master/users&lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;I need to create a query and extract "foo.com" from the url so I can create an alert anytime the url is&amp;nbsp; "bar.com"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very new to splunk. so please bare with me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 12:57:30 GMT</pubDate>
    <dc:creator>muqeeiz</dc:creator>
    <dc:date>2023-08-24T12:57:30Z</dc:date>
    <item>
      <title>How to extract part of a URL and create alert.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655477#M226426</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following log lines:&lt;/P&gt;&lt;P&gt;2023-08-23 06:27:13,551 DEBUG [org.keycloak.protocol.oidc.utils.RedirectUtils] (executor-thread-70) replacing relative valid redirect with: https:// foo.com/admin/master/console/*&lt;/P&gt;&lt;P&gt;2023-08-23 06:28:04,446 DEBUG [io.quarkus.vertx.http.runtime.ForwardedParser] (executor-thread-70) Recalculated absoluteURI to https:// foo.com/admin/realms/master/users&lt;/P&gt;&lt;P&gt;and so on....&lt;/P&gt;&lt;P&gt;I need to create a query and extract "foo.com" from the url so I can create an alert anytime the url is&amp;nbsp; "bar.com"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very new to splunk. so please bare with me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 12:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655477#M226426</guid>
      <dc:creator>muqeeiz</dc:creator>
      <dc:date>2023-08-24T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a URL and create alert.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655480#M226427</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "https:\/\/(?&amp;lt;server&amp;gt;[^\/]+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655480#M226427</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-24T13:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a URL and create alert.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655481#M226428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259965"&gt;@muqeeiz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you're sure that there's always https and a space after //, you culd use something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "https:\/\/\s*(?&amp;lt;url&amp;gt;[^\/]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can check at&amp;nbsp;&lt;A href="https://regex101.com/r/VkelFS/1" target="_blank"&gt;https://regex101.com/r/VkelFS/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655481#M226428</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-24T13:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract part of a URL and create alert.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655482#M226429</link>
      <description>&lt;P&gt;Getting the first part of the URL is pretty easy using &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "https?:\/\/(?&amp;lt;domain&amp;gt;[^\/]+)"
| where domain="bar.com"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 13:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-part-of-a-URL-and-create-alert/m-p/655482#M226429</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-08-24T13:05:00Z</dc:date>
    </item>
  </channel>
</rss>

