<?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: How to combine two databaseHostNames conditions into one automated tagging rule in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/How-to-combine-two-databaseHostNames-conditions-into-one/m-p/302463#M2707</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use a Monitored entity rule, apply it to Services, and add a condition for Database host name.&lt;/P&gt;&lt;P&gt;If the database hostnames share a common prefix, select the Begins with operator and enter the prefix value. Alternatively, select Contains regex and enter the required regular expression when the hostnames follow a more complex naming pattern.&lt;/P&gt;&lt;P&gt;For example, this approach can be used to match database hostnames such as, DatabaseHostNames, DatabaseHostNames.2, DatabaseHostNames.3&lt;/P&gt;&lt;P&gt;Alternatively, when you have only two or three specific database hostnames and prefer to use an entity-selector rule, you can include all the exact values in a single condition:&lt;/P&gt;&lt;P&gt;type("SERVICE"),databaseHostNames("DatabaseHostNames","DatabaseHostNames.2","DatabaseHostNames.3")&lt;/P&gt;&lt;P&gt;This matches a service when its database hostname equals any of the listed values.&lt;/P&gt;&lt;P&gt;Please note that `databaseHostNames()` uses exact matching and does not support modifiers such as `.startsWith()` or regular expressions.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2026 03:35:33 GMT</pubDate>
    <dc:creator>Mohamed_Hamdy</dc:creator>
    <dc:date>2026-07-28T03:35:33Z</dc:date>
    <item>
      <title>How to combine two databaseHostNames conditions into one automated tagging rule</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-combine-two-databaseHostNames-conditions-into-one/m-p/302020#M2684</link>
      <description>&lt;P&gt;Hi Community, I need to apply an automated tag to some databaseHostNames, but I can only do this with two separate rules, even though both host names start the same way. Is there a way to apply this tag using only one rule? I tried using AND or CONTAINS, but I couldn't find a way to make it work.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Apply 'TAG' to Entities matching type("SERVICE"),databaseHostNames("DatabaseHostNames")&lt;/P&gt;
&lt;P&gt;Apply 'TAG' to Entities matching type("SERVICE"),databaseHostNames("DatabaseHostNames.2")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2026 07:02:46 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-combine-two-databaseHostNames-conditions-into-one/m-p/302020#M2684</guid>
      <dc:creator>cmontesdeoca</dc:creator>
      <dc:date>2026-07-17T07:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine two databaseHostNames conditions into one automated tagging rule</title>
      <link>https://community.dynatrace.com/t5/Automations/How-to-combine-two-databaseHostNames-conditions-into-one/m-p/302463#M2707</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use a Monitored entity rule, apply it to Services, and add a condition for Database host name.&lt;/P&gt;&lt;P&gt;If the database hostnames share a common prefix, select the Begins with operator and enter the prefix value. Alternatively, select Contains regex and enter the required regular expression when the hostnames follow a more complex naming pattern.&lt;/P&gt;&lt;P&gt;For example, this approach can be used to match database hostnames such as, DatabaseHostNames, DatabaseHostNames.2, DatabaseHostNames.3&lt;/P&gt;&lt;P&gt;Alternatively, when you have only two or three specific database hostnames and prefer to use an entity-selector rule, you can include all the exact values in a single condition:&lt;/P&gt;&lt;P&gt;type("SERVICE"),databaseHostNames("DatabaseHostNames","DatabaseHostNames.2","DatabaseHostNames.3")&lt;/P&gt;&lt;P&gt;This matches a service when its database hostname equals any of the listed values.&lt;/P&gt;&lt;P&gt;Please note that `databaseHostNames()` uses exact matching and does not support modifiers such as `.startsWith()` or regular expressions.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2026 03:35:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/How-to-combine-two-databaseHostNames-conditions-into-one/m-p/302463#M2707</guid>
      <dc:creator>Mohamed_Hamdy</dc:creator>
      <dc:date>2026-07-28T03:35:33Z</dc:date>
    </item>
  </channel>
</rss>

