<?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: Exclusion using NOT to exclude values in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743777#M58561</link>
    <description>&lt;LI-CODE lang="markup"&gt;| search os_version&amp;gt;=12 OR NOT (os_type="solaris" OR os_type="suse")&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 08 Apr 2025 12:22:16 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2025-04-08T12:22:16Z</dc:date>
    <item>
      <title>Exclusion using NOT to exclude values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743757#M58559</link>
      <description>&lt;P&gt;i have a query where im generating a table with columns&amp;nbsp;&lt;/P&gt;&lt;P&gt;ostype ,osversion and status&amp;nbsp; i need to exclude anything below version 12 for solaris and suse im using the below command and it works but this is not efficient way&amp;nbsp;&lt;/P&gt;&lt;P&gt;| search state="Installed"&lt;BR /&gt;| search NOT( os_type="solaris" AND os_version &amp;lt;12)&lt;BR /&gt;| search NOT( os_type="*suse*" AND os_version &amp;lt;12)&lt;BR /&gt;&lt;BR /&gt;i was trying to use the below command&lt;/P&gt;&lt;P&gt;| search state="Installed" NOT (( os_type="solaris" AND os_version &amp;lt;12) OR ( os_type="*suse*" AND os_version &amp;lt;12))&lt;/P&gt;&lt;P&gt;and its not working&lt;/P&gt;&lt;P&gt;any suggestions&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 10:04:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743757#M58559</guid>
      <dc:creator>secure</dc:creator>
      <dc:date>2025-04-08T10:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exclusion using NOT to exclude values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743761#M58560</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274955"&gt;@secure&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;are you sure about the field names? you used two different names for each of them (ostype and OS_type) but maybe it's a mistyping.&lt;/P&gt;&lt;P&gt;Anyway, che ck the field names.&lt;/P&gt;&lt;P&gt;Then check the value of os_version, if you use the "&amp;lt;" char, it must be numeric.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 10:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743761#M58560</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-04-08T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exclusion using NOT to exclude values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743777#M58561</link>
      <description>&lt;LI-CODE lang="markup"&gt;| search os_version&amp;gt;=12 OR NOT (os_type="solaris" OR os_type="suse")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Apr 2025 12:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743777#M58561</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-04-08T12:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exclusion using NOT to exclude values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743780#M58562</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274955"&gt;@secure&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try the following which I think should do what you need?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where NOT (os_type="solaris" OR like(os_type,"%suse%")) OR os_version&amp;gt;=12&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The match is used due to the wildcards, so in this where statement we are excluding solaris/*suse* unless the os_version is greater/equal to 12 (Which is functionally the same as excluding less than version 12).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 12:48:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Exclusion-using-NOT-to-exclude-values/m-p/743780#M58562</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-04-08T12:48:25Z</dc:date>
    </item>
  </channel>
</rss>

