<?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 Pro-tip: Exclude entities by tag (find the non-matching entities) in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/195171#M593</link>
    <description>&lt;H2&gt;How do you exclude entities by tagging non-match?&lt;/H2&gt;
&lt;H3&gt;Also known as filter for "negate match" or "does not match".&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question comes up from time-to-time, and I'd just responded to the same on &lt;A href="https://community.dynatrace.com/t5/Feedback-channel/Feedback-channel-for-the-new-opt-in-host-overview-page/m-p/195164/highlight/true#M1903" target="_self"&gt;another thread.&lt;/A&gt; I thought it worthwhile to share as a &lt;STRONG&gt;Dynatrace tip!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Option 1)&lt;/H4&gt;
&lt;P&gt;You could have many tags, it is true. For all the different conditions you could think of.&lt;/P&gt;
&lt;P&gt;eg: include or exclude Kubernetes nodes&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_0-1664238177434.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7747iC0A2E1B2B07E9F1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_0-1664238177434.png" alt="The_AM_0-1664238177434.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then say, if you want to exclude Linux-only OS, you would need another tag for 'isLinuxOS': yes/no&lt;/P&gt;
&lt;P&gt;For Windows, 'isWindowsOS': yes/no&lt;/P&gt;
&lt;P&gt;And so on....&lt;/P&gt;
&lt;P&gt;This is cumbersome, I agree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Option 2) [Recommended]&lt;/H4&gt;
&lt;P&gt;However, an easier way may be to make a tag called "exclude" and all the optional tag values point to the condition you'd like to exclude. You may add many different options here.&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="The_AM_1-1664238177442.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7746iA8B173D4644BEC2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_1-1664238177442.png" alt="The_AM_1-1664238177442.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;U&gt;The Results!&lt;/U&gt;&lt;/H4&gt;
&lt;P&gt;You can see here, the results can be quite powerful.&lt;/P&gt;
&lt;P&gt;I could exclude all my Kubernetes nodes, to find other types of hosts.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_2-1664238263602.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7748i0DDCF14639A32C9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_2-1664238263602.png" alt="The_AM_2-1664238263602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is even possible to combine multiple conditions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_3-1664238317168.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7749i8CEACB80D126CA75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_3-1664238317168.png" alt="The_AM_3-1664238317168.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Technically, you could filter to the same entity by combining an inclusion and exclusion tag. It all depends on the problem you'd like to solve.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_4-1664238387869.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7750iB7E550D1EDC6DF69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_4-1664238387869.png" alt="The_AM_4-1664238387869.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Sep 2022 00:32:37 GMT</pubDate>
    <dc:creator>The_AM</dc:creator>
    <dc:date>2022-09-27T00:32:37Z</dc:date>
    <item>
      <title>Pro-tip: Exclude entities by tag (find the non-matching entities)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/195171#M593</link>
      <description>&lt;H2&gt;How do you exclude entities by tagging non-match?&lt;/H2&gt;
&lt;H3&gt;Also known as filter for "negate match" or "does not match".&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This question comes up from time-to-time, and I'd just responded to the same on &lt;A href="https://community.dynatrace.com/t5/Feedback-channel/Feedback-channel-for-the-new-opt-in-host-overview-page/m-p/195164/highlight/true#M1903" target="_self"&gt;another thread.&lt;/A&gt; I thought it worthwhile to share as a &lt;STRONG&gt;Dynatrace tip!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Option 1)&lt;/H4&gt;
&lt;P&gt;You could have many tags, it is true. For all the different conditions you could think of.&lt;/P&gt;
&lt;P&gt;eg: include or exclude Kubernetes nodes&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_0-1664238177434.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7747iC0A2E1B2B07E9F1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_0-1664238177434.png" alt="The_AM_0-1664238177434.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then say, if you want to exclude Linux-only OS, you would need another tag for 'isLinuxOS': yes/no&lt;/P&gt;
&lt;P&gt;For Windows, 'isWindowsOS': yes/no&lt;/P&gt;
&lt;P&gt;And so on....&lt;/P&gt;
&lt;P&gt;This is cumbersome, I agree.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Option 2) [Recommended]&lt;/H4&gt;
&lt;P&gt;However, an easier way may be to make a tag called "exclude" and all the optional tag values point to the condition you'd like to exclude. You may add many different options here.&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="The_AM_1-1664238177442.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7746iA8B173D4644BEC2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_1-1664238177442.png" alt="The_AM_1-1664238177442.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;U&gt;The Results!&lt;/U&gt;&lt;/H4&gt;
&lt;P&gt;You can see here, the results can be quite powerful.&lt;/P&gt;
&lt;P&gt;I could exclude all my Kubernetes nodes, to find other types of hosts.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_2-1664238263602.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7748i0DDCF14639A32C9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_2-1664238263602.png" alt="The_AM_2-1664238263602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is even possible to combine multiple conditions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_3-1664238317168.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7749i8CEACB80D126CA75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_3-1664238317168.png" alt="The_AM_3-1664238317168.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Technically, you could filter to the same entity by combining an inclusion and exclusion tag. It all depends on the problem you'd like to solve.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The_AM_4-1664238387869.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/7750iB7E550D1EDC6DF69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="The_AM_4-1664238387869.png" alt="The_AM_4-1664238387869.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 00:32:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/195171#M593</guid>
      <dc:creator>The_AM</dc:creator>
      <dc:date>2022-09-27T00:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-tip: Exclude entities by tag (find the non-matching entities)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/202093#M680</link>
      <description>&lt;P&gt;very nice little trick to work around that negations of filtering &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Kudos to you&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21137"&gt;@The_AM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 16:52:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/202093#M680</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-01-10T16:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-tip: Exclude entities by tag (find the non-matching entities)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/255660#M1373</link>
      <description>&lt;P&gt;I do not understand how this work. In the example you use exclude:kubernetes-node, however it seems you set a tag value of non-k8-node in the Rules. Please show details of the configured rule conditions and what tag values have been used and why. I spent 1h trying to follow this tip and gotten nowhere.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 11:35:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/255660#M1373</guid>
      <dc:creator>Vanguard</dc:creator>
      <dc:date>2024-09-13T11:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pro-tip: Exclude entities by tag (find the non-matching entities)</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/257039#M1437</link>
      <description>&lt;P&gt;&lt;STRONG&gt;exclude:non-k8s-node&lt;/STRONG&gt; matches all Kubernetes nodes (include only K8s nodes). All other servers are excluded.&lt;BR /&gt;&lt;STRONG&gt;exclude:kubernetes-node&lt;/STRONG&gt; matches all nodes that do not have Kubernetes. All Kubernetes servers are excluded.&lt;BR /&gt;&lt;BR /&gt;These rules do not necessarily cover every use-case and are non-exhaustive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: It's also been about 2 years since this was made, it is possible metadata available has changed.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 03:03:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Pro-tip-Exclude-entities-by-tag-find-the-non-matching-entities/m-p/257039#M1437</guid>
      <dc:creator>The_AM</dc:creator>
      <dc:date>2024-09-25T03:03:18Z</dc:date>
    </item>
  </channel>
</rss>

