<?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: Splitting a service by &amp;quot;URL_HOST_NAME&amp;quot; ? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234290#M30505</link>
    <description>&lt;P&gt;UI has been there for more than a year (probably two), but for more complex scenarios such as 80+ rules. I always prefer to do it as code. Manually typing dozens of rules is error-prone.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Jan 2024 21:14:41 GMT</pubDate>
    <dc:creator>Julius_Loman</dc:creator>
    <dc:date>2024-01-14T21:14:41Z</dc:date>
    <item>
      <title>Splitting a service by "URL_HOST_NAME"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234210#M30473</link>
      <description>&lt;P&gt;I have been splitting services by several techniques, according to&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-split-a-service/m-p/121066" target="_blank" rel="noopener"&gt;https://community.dynatrace.com/t5/Open-Q-A/Is-it-possible-to-split-a-service/m-p/121066&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Strangely today I was trying to split a "FULL_WEB_REQUEST" service by the URL hostname, and it seems it's not possible. While it seems that it's possible to do this with "Public network services" and "Unmonitored hosts", it doesn't seem to be possible with "FULL_WEB_REQUEST".&lt;/P&gt;
&lt;P&gt;The best approximation I have managed is to do it through a condition, with something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
"attributeType": "URL_HOST_NAME",
"compareOperations": [
{
"type": "STARTS_WITH",
"negate" : false,
"ignoreCase" : "true",
"values" : [ "www001.site.pt"] }
] }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;but I need to do it for some 80 conditions, and it wouldn't be dynamic...&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 15:33:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234210#M30473</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-03-06T15:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a service by "URL_HOST_NAME" ?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234285#M30502</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/17213"&gt;@AntonioSousa&lt;/a&gt;&amp;nbsp;Not sure about the reason (probably since the rules are evaluated differently for outgoing where you have only the client side monitored), but it's not in general a recommended approach due to possible volatility.&lt;BR /&gt;&lt;BR /&gt;If you have like 80+ conditions, it's a good way to use monaco to define the detection rules as it now supports &lt;A href="https://docs.dynatrace.com/docs/shortlink/configuration-as-code-advanced-use-case#advanced-use-case-list-of-key-value-pairs" target="_self"&gt;proper templating&lt;/A&gt;. And you can define it then with a simple list.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 20:17:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234285#M30502</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2024-01-14T20:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a service by "URL_HOST_NAME" ?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234287#M30504</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the answer. Looks like I'm going to put in a product idea (it's here: &lt;A href="https://community.dynatrace.com/t5/Product-ideas/Split-a-quot-FULL-WEB-REQUEST-quot-service-by-the-URL-hostname/idi-p/234288" target="_blank"&gt;https://community.dynatrace.com/t5/Product-ideas/Split-a-quot-FULL-WEB-REQUEST-quot-service-by-the-URL-hostname/idi-p/234288&lt;/A&gt; ), as this is only a temporary solution, as the hostnames involved might increase with time.&lt;/P&gt;&lt;P&gt;In the meantime, I was doing it through the API, but now I have discovered that you can also do it through the UI:&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/services/service-detection-and-naming/customize-service-detection#ui-create" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/platform-modules/applications-and-microservices/services/service-detection-and-naming/customize-service-detection#ui-create&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 20:58:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234287#M30504</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-01-14T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a service by "URL_HOST_NAME" ?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234290#M30505</link>
      <description>&lt;P&gt;UI has been there for more than a year (probably two), but for more complex scenarios such as 80+ rules. I always prefer to do it as code. Manually typing dozens of rules is error-prone.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 21:14:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234290#M30505</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2024-01-14T21:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a service by "URL_HOST_NAME" ?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234292#M30507</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3364"&gt;@Julius_Loman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Have always done it API way, so not difficult to do all of them.&lt;/P&gt;&lt;P&gt;Also figured out that you cannot do some of the configs in the UI....&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 23:42:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Splitting-a-service-by-quot-URL-HOST-NAME-quot/m-p/234292#M30507</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2024-01-14T23:42:33Z</dc:date>
    </item>
  </channel>
</rss>

