<?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 Exclude results where two or more fields match in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-where-two-or-more-fields-match/m-p/515062#M144586</link>
    <description>&lt;P&gt;I am trying to understand how to remove results where "field_a" and "field_a" each contain a certain value together in the same log... but not all results containing "field_a" or all results containing "field_b"... or any other fields.&lt;BR /&gt;&lt;BR /&gt;Here are some example of logs:&lt;BR /&gt;&lt;BR /&gt;field_a=5 field_b=3&lt;/P&gt;&lt;P&gt;field_a=5 field_b=2&lt;/P&gt;&lt;P&gt;field_a=2 field_b=3&lt;/P&gt;&lt;P&gt;I want to exclude only logs where&amp;nbsp;field_a is equal to "5"&amp;nbsp;&lt;STRONG&gt;AND &lt;/STRONG&gt;field_b is equal to "3"&amp;nbsp;... but keep all other results. So, in the log examples above, I would only want to exclude the first log because that is the only example where BOTH fields contain a specific value... I would want my query to return the last two logs.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 20:44:52 GMT</pubDate>
    <dc:creator>iomega311</dc:creator>
    <dc:date>2020-08-19T20:44:52Z</dc:date>
    <item>
      <title>Exclude results where two or more fields match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-where-two-or-more-fields-match/m-p/515062#M144586</link>
      <description>&lt;P&gt;I am trying to understand how to remove results where "field_a" and "field_a" each contain a certain value together in the same log... but not all results containing "field_a" or all results containing "field_b"... or any other fields.&lt;BR /&gt;&lt;BR /&gt;Here are some example of logs:&lt;BR /&gt;&lt;BR /&gt;field_a=5 field_b=3&lt;/P&gt;&lt;P&gt;field_a=5 field_b=2&lt;/P&gt;&lt;P&gt;field_a=2 field_b=3&lt;/P&gt;&lt;P&gt;I want to exclude only logs where&amp;nbsp;field_a is equal to "5"&amp;nbsp;&lt;STRONG&gt;AND &lt;/STRONG&gt;field_b is equal to "3"&amp;nbsp;... but keep all other results. So, in the log examples above, I would only want to exclude the first log because that is the only example where BOTH fields contain a specific value... I would want my query to return the last two logs.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 20:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-where-two-or-more-fields-match/m-p/515062#M144586</guid>
      <dc:creator>iomega311</dc:creator>
      <dc:date>2020-08-19T20:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude results where two or more fields match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-where-two-or-more-fields-match/m-p/515066#M144588</link>
      <description>&lt;P&gt;NOT (&amp;nbsp;&lt;SPAN&gt;field_a=5 AND field_b=3&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;add this within your base search or in subsequent search command&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 21:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-where-two-or-more-fields-match/m-p/515066#M144588</guid>
      <dc:creator>sbuntin_splunk</dc:creator>
      <dc:date>2020-08-19T21:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude results where two or more fields match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-results-where-two-or-more-fields-match/m-p/515067#M144589</link>
      <description>&lt;P&gt;Perhaps this will help.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo NOT (field_a=5 AND field_b=3)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Aug 2020 21:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-results-where-two-or-more-fields-match/m-p/515067#M144589</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-19T21:10:54Z</dc:date>
    </item>
  </channel>
</rss>

