<?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 DPL expressions for web address with port in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DPL-expressions-for-web-address-with-port/m-p/274391#M1897</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am trying to find a pattern to match a web address and a port number in the content of a log. For example the log will contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a test message for &lt;A href="http://ltest-bed.trigun.org" target="_blank" rel="noopener"&gt;http://ltest-bed.trigun.org&lt;/A&gt; for a system &lt;STRONG&gt;test-bed.trigun.org&lt;/STRONG&gt;:443. Tunnel id account:///test/locat&lt;/P&gt;&lt;P&gt;I want to be able to match the content in bold. The port number of the org keeps varying and also sometimes the system comes enclosed in a quote for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;log 1:&lt;/STRONG&gt; This is a test message for &lt;A href="http://ltest-bed.trigun.org" target="_blank" rel="noopener"&gt;http://ltest-bed.trigun.org&lt;/A&gt; for a system \"&lt;STRONG&gt;test-bed.trigun.org&lt;/STRONG&gt;:443\". Tunnel id account:///test/locat&lt;/P&gt;&lt;P&gt;The log might also come in the format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;log 2:&lt;/STRONG&gt; This is a test message for a system "&lt;STRONG&gt;test-bed.trigun.org&lt;/STRONG&gt;:443". Tunnel id account:///test/locat&lt;BR /&gt;any suggestions please ?&lt;/P&gt;&lt;P&gt;I tried this&amp;nbsp;[a-zA-Z0-9.-]*:host':'[0-9]*:port but that did not work because it would also match http: rather than the webaddress:port&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2025 00:00:51 GMT</pubDate>
    <dc:creator>triptisharma</dc:creator>
    <dc:date>2025-04-04T00:00:51Z</dc:date>
    <item>
      <title>DPL expressions for web address with port</title>
      <link>https://community.dynatrace.com/t5/DQL/DPL-expressions-for-web-address-with-port/m-p/274391#M1897</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I am trying to find a pattern to match a web address and a port number in the content of a log. For example the log will contain&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a test message for &lt;A href="http://ltest-bed.trigun.org" target="_blank" rel="noopener"&gt;http://ltest-bed.trigun.org&lt;/A&gt; for a system &lt;STRONG&gt;test-bed.trigun.org&lt;/STRONG&gt;:443. Tunnel id account:///test/locat&lt;/P&gt;&lt;P&gt;I want to be able to match the content in bold. The port number of the org keeps varying and also sometimes the system comes enclosed in a quote for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;log 1:&lt;/STRONG&gt; This is a test message for &lt;A href="http://ltest-bed.trigun.org" target="_blank" rel="noopener"&gt;http://ltest-bed.trigun.org&lt;/A&gt; for a system \"&lt;STRONG&gt;test-bed.trigun.org&lt;/STRONG&gt;:443\". Tunnel id account:///test/locat&lt;/P&gt;&lt;P&gt;The log might also come in the format&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;log 2:&lt;/STRONG&gt; This is a test message for a system "&lt;STRONG&gt;test-bed.trigun.org&lt;/STRONG&gt;:443". Tunnel id account:///test/locat&lt;BR /&gt;any suggestions please ?&lt;/P&gt;&lt;P&gt;I tried this&amp;nbsp;[a-zA-Z0-9.-]*:host':'[0-9]*:port but that did not work because it would also match http: rather than the webaddress:port&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 00:00:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DPL-expressions-for-web-address-with-port/m-p/274391#M1897</guid>
      <dc:creator>triptisharma</dc:creator>
      <dc:date>2025-04-04T00:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: DPL expressions for web address with port</title>
      <link>https://community.dynatrace.com/t5/DQL/DPL-expressions-for-web-address-with-port/m-p/274393#M1898</link>
      <description>&lt;P&gt;Your current pattern has the port number digits as optional, where the '*' quantifier means "match zero or more". This causes the pattern to match on HTTP. Replace the '*' with a '+' sign to make it mandatory, as seen in the example below.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;data record(content="This is a test message for http://ltest-bed.trigun.org for a system \"test-bed.trigun.org:443\". Tunnel id account:///test/locat")
| parse content, "LD ([a-zA-Z0-9.-]*:host':'[0-9]+:port) LD"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 02:27:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DPL-expressions-for-web-address-with-port/m-p/274393#M1898</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-04-04T02:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: DPL expressions for web address with port</title>
      <link>https://community.dynatrace.com/t5/DQL/DPL-expressions-for-web-address-with-port/m-p/274443#M1901</link>
      <description>&lt;P&gt;Thank you Marco!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2025 16:46:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DPL-expressions-for-web-address-with-port/m-p/274443#M1901</guid>
      <dc:creator>triptisharma</dc:creator>
      <dc:date>2025-04-04T16:46:00Z</dc:date>
    </item>
  </channel>
</rss>

