<?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 using startsWith in entity selector in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/using-startsWith-in-entity-selector/m-p/198186#M23230</link>
    <description>&lt;P&gt;Hi community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to configure a tag that selects mssql db instance and EXCLUDES db instances from specific &lt;STRONG&gt;server&lt;/STRONG&gt; instance beginning with certain alphabets (for custom alerting purposes). In attribute seems like there is no startswith() option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have anyone have experience regarding this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now my entity selector looked like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;type(dt.entity.sql:sql_server_database), not(Device("VCENxxx"))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which i keyed in the full name of the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was wondering if I can have a startswith option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leonatay_0-1668157871337.png" style="width: 499px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8451i1DF9A7BF62CADB55/image-dimensions/499x232?v=v2" width="499" height="232" role="button" title="leonatay_0-1668157871337.png" alt="leonatay_0-1668157871337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Leona&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 09:19:42 GMT</pubDate>
    <dc:creator>leonatay</dc:creator>
    <dc:date>2022-11-11T09:19:42Z</dc:date>
    <item>
      <title>using startsWith in entity selector</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/using-startsWith-in-entity-selector/m-p/198186#M23230</link>
      <description>&lt;P&gt;Hi community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to configure a tag that selects mssql db instance and EXCLUDES db instances from specific &lt;STRONG&gt;server&lt;/STRONG&gt; instance beginning with certain alphabets (for custom alerting purposes). In attribute seems like there is no startswith() option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have anyone have experience regarding this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now my entity selector looked like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;type(dt.entity.sql:sql_server_database), not(Device("VCENxxx"))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which i keyed in the full name of the device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was wondering if I can have a startswith option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leonatay_0-1668157871337.png" style="width: 499px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/8451i1DF9A7BF62CADB55/image-dimensions/499x232?v=v2" width="499" height="232" role="button" title="leonatay_0-1668157871337.png" alt="leonatay_0-1668157871337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Leona&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 09:19:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/using-startsWith-in-entity-selector/m-p/198186#M23230</guid>
      <dc:creator>leonatay</dc:creator>
      <dc:date>2022-11-11T09:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: using startsWith in entity selector</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/using-startsWith-in-entity-selector/m-p/198236#M23237</link>
      <description>&lt;P&gt;Hi Leona,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least on our cluster (Dynatrace Managed, 1.248) we do not have entity type "dt.entity.sql:sql_server_database".&amp;nbsp; Are your sure you do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We actually work quite a lot with entitySelector for Management Zone definition (f.e. include all queues or all databases which are related to services from this management zone) or for custom tagging (tag all services which run on process group with these tags and entity name which starts with this and contains that). And it works. Example:&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;type(SERVICE),serviceType(DATABASE_SERVICE),softwareTechnologies(MICROSOFT_SQL_SERVER),not(entityName.startsWith("EV"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Asks all services which are MS SQL databases and name does not starts with EV. Output:&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;{
  "totalCount": 155,
  "pageSize": 200,
  "entities": [
    {
      "entityId": "SERVICE-076BDC9E1A05DB5A",
      "type": "SERVICE",
      "displayName": "SpiraTest",
      "properties": {
        "softwareTechnologies": [
          {
            "type": "MICROSOFT_SQL_SERVER"
          },
          {
            "type": "DOTNET",
            "edition": ".NET Framework",
            "version": "4.6.2.0"
          }
        ]
      }
    },
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(we do not have mysql oon the system...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ingrida&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 17:35:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/using-startsWith-in-entity-selector/m-p/198236#M23237</guid>
      <dc:creator>Ingrida</dc:creator>
      <dc:date>2022-11-11T17:35:37Z</dc:date>
    </item>
  </channel>
</rss>

