<?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 Web request naming with regex patterns in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Web-request-naming-with-regex-patterns/m-p/248878#M32851</link>
    <description>&lt;P&gt;I'm trying to create a set of web request naming rules, ideally for the enterprise, that will replace unique identifiers in the strings with something like "[identifier]".&amp;nbsp; The identifier can be located in various "fields" within the path, everything from field 2 to field 9.&amp;nbsp; In addition, there can be multiple identifiers in a single request.&amp;nbsp; I can't afford to create a rule for every permutation of a pattern.&amp;nbsp; I was hoping someone could help me with simplifying the rule so I don't have to "hard code" which field in the path that the capture groups is in (field 3 or field 4) instead of 2 rules.&amp;nbsp; I was also looking if there is a way to easily replace all unique identifiers.&lt;/P&gt;&lt;P&gt;***The Generate clean URL would match how I would like but deletes the capture group vs replacing with a string***&lt;BR /&gt;***Maybe this is a use case for the OpenPipeline feature that isn't yet released but would love to hear about***&lt;/P&gt;&lt;P&gt;A couple simple examples of request names with the complexity:&lt;/P&gt;&lt;P&gt;/v1/api/&lt;U&gt;12345&lt;/U&gt;/status&lt;BR /&gt;/v1/api/client/&lt;U&gt;NE873HES&lt;BR /&gt;&lt;/U&gt;/v1/api/&lt;U&gt;N78N6383&lt;/U&gt;/product/&lt;U&gt;123457&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I'm testing with some rules, but hoping to simplify the number of rules and completeness.&lt;/P&gt;&lt;P&gt;Matching rules are built to define which field in the path to match the regex (which is Capital letters || numbers || \ || _)&lt;/P&gt;&lt;P&gt;Rule 1 for the first example:&amp;nbsp; This will find the pattern in 3rd field of path, delimiting by '/' character.&amp;nbsp; The "pre-identifier3", captures everything before the pattern I want to replace.&amp;nbsp; The "post-identifier3", captures everything after pattern to be replaced.&lt;BR /&gt;Matching condition: ^.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]{2}&lt;BR /&gt;Place holder name:&amp;nbsp;{pre-identifier3}[IDENTIFIER]{post-identifier3}&lt;BR /&gt;pre-identifier3:&amp;nbsp;(.[^\/]*+\/.[^\/]*+\/)[A-Z0-9\-_]&lt;BR /&gt;post-identifier3:&amp;nbsp;.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]*+(/.*+)&lt;/P&gt;&lt;P&gt;Rule 2 for the second example:&amp;nbsp; This will find the pattern in 4th field of path, delimiting by '/' character.&amp;nbsp; The "pre-identifier4", captures everything before the pattern I want to replace.&amp;nbsp; The "post-identifier4", captures everything after pattern to be replaced.&lt;BR /&gt;Matching condition:&amp;nbsp;^.[^\/]*+\/.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]{2}&lt;BR /&gt;Place holder name: {pre-identifier4}[IDENTIFIER]{post-identifier4}&lt;BR /&gt;pre-identifier3: (.[^\/]*+\/.[^\/]*+\/.[^\/]*+\/)[A-Z0-9\-_]&lt;BR /&gt;post-identifier3: .[^\/]*+\/.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]*+(/.*+)&lt;/P&gt;&lt;P&gt;For the 3rd example, it will be caught by Rule 1 and the second identifier in the path will not be replaced.&amp;nbsp; I know I could create another version of rule 1 and place it before rule 1 but at that point the number of rules will become ridiculous for all the variations.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 14:46:18 GMT</pubDate>
    <dc:creator>ronmacdonald</dc:creator>
    <dc:date>2024-06-21T14:46:18Z</dc:date>
    <item>
      <title>Web request naming with regex patterns</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-request-naming-with-regex-patterns/m-p/248878#M32851</link>
      <description>&lt;P&gt;I'm trying to create a set of web request naming rules, ideally for the enterprise, that will replace unique identifiers in the strings with something like "[identifier]".&amp;nbsp; The identifier can be located in various "fields" within the path, everything from field 2 to field 9.&amp;nbsp; In addition, there can be multiple identifiers in a single request.&amp;nbsp; I can't afford to create a rule for every permutation of a pattern.&amp;nbsp; I was hoping someone could help me with simplifying the rule so I don't have to "hard code" which field in the path that the capture groups is in (field 3 or field 4) instead of 2 rules.&amp;nbsp; I was also looking if there is a way to easily replace all unique identifiers.&lt;/P&gt;&lt;P&gt;***The Generate clean URL would match how I would like but deletes the capture group vs replacing with a string***&lt;BR /&gt;***Maybe this is a use case for the OpenPipeline feature that isn't yet released but would love to hear about***&lt;/P&gt;&lt;P&gt;A couple simple examples of request names with the complexity:&lt;/P&gt;&lt;P&gt;/v1/api/&lt;U&gt;12345&lt;/U&gt;/status&lt;BR /&gt;/v1/api/client/&lt;U&gt;NE873HES&lt;BR /&gt;&lt;/U&gt;/v1/api/&lt;U&gt;N78N6383&lt;/U&gt;/product/&lt;U&gt;123457&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I'm testing with some rules, but hoping to simplify the number of rules and completeness.&lt;/P&gt;&lt;P&gt;Matching rules are built to define which field in the path to match the regex (which is Capital letters || numbers || \ || _)&lt;/P&gt;&lt;P&gt;Rule 1 for the first example:&amp;nbsp; This will find the pattern in 3rd field of path, delimiting by '/' character.&amp;nbsp; The "pre-identifier3", captures everything before the pattern I want to replace.&amp;nbsp; The "post-identifier3", captures everything after pattern to be replaced.&lt;BR /&gt;Matching condition: ^.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]{2}&lt;BR /&gt;Place holder name:&amp;nbsp;{pre-identifier3}[IDENTIFIER]{post-identifier3}&lt;BR /&gt;pre-identifier3:&amp;nbsp;(.[^\/]*+\/.[^\/]*+\/)[A-Z0-9\-_]&lt;BR /&gt;post-identifier3:&amp;nbsp;.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]*+(/.*+)&lt;/P&gt;&lt;P&gt;Rule 2 for the second example:&amp;nbsp; This will find the pattern in 4th field of path, delimiting by '/' character.&amp;nbsp; The "pre-identifier4", captures everything before the pattern I want to replace.&amp;nbsp; The "post-identifier4", captures everything after pattern to be replaced.&lt;BR /&gt;Matching condition:&amp;nbsp;^.[^\/]*+\/.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]{2}&lt;BR /&gt;Place holder name: {pre-identifier4}[IDENTIFIER]{post-identifier4}&lt;BR /&gt;pre-identifier3: (.[^\/]*+\/.[^\/]*+\/.[^\/]*+\/)[A-Z0-9\-_]&lt;BR /&gt;post-identifier3: .[^\/]*+\/.[^\/]*+\/.[^\/]*+\/[A-Z0-9\-_]*+(/.*+)&lt;/P&gt;&lt;P&gt;For the 3rd example, it will be caught by Rule 1 and the second identifier in the path will not be replaced.&amp;nbsp; I know I could create another version of rule 1 and place it before rule 1 but at that point the number of rules will become ridiculous for all the variations.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 14:46:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-request-naming-with-regex-patterns/m-p/248878#M32851</guid>
      <dc:creator>ronmacdonald</dc:creator>
      <dc:date>2024-06-21T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Web request naming with regex patterns</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Web-request-naming-with-regex-patterns/m-p/248901#M32853</link>
      <description>&lt;P&gt;Have you seen &lt;A href="https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Global-request-naming-for-REST-services/m-p/176341#M289" target="_self"&gt;PRO TIP - Global request naming for REST services&lt;/A&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 19:56:22 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Web-request-naming-with-regex-patterns/m-p/248901#M32853</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2024-06-21T19:56:22Z</dc:date>
    </item>
  </channel>
</rss>

