<?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: where field 1 or field 2 equals False in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203709#M187650</link>
    <description>&lt;P&gt;From your 2nd para, it looks like you need this. This will ensure at least one of them is false and both are NOT true and both are not false.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where field1!=field2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Feb 2016 16:53:36 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-02-15T16:53:36Z</dc:date>
    <item>
      <title>where field 1 or field 2 equals False</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203706#M187647</link>
      <description>&lt;P&gt;I have two fields in a query where they either equal True or False and I want to find all the results where these two fields equal False. I have tried | where field1 ="False" OR  field2 ="False"&lt;/P&gt;

&lt;P&gt;However, when I run this it only picks up the first field it doesn't pick up the 2nd Field? Both fields should not be false at the same time.  I have also tried the search command as well instead of where. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 15:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203706#M187647</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-15T15:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: where field 1 or field 2 equals False</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203707#M187648</link>
      <description>&lt;P&gt;You need a logical AND in this case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where field1 ="False" AND field2 ="False"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The OR you are using will return any event where either field1 is False or field2 is false, or both, or one of them is true and the other false.&lt;/P&gt;

&lt;P&gt;Note you can use search too:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search field1 ="False" AND field2 ="False"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Feb 2016 16:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203707#M187648</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-15T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: where field 1 or field 2 equals False</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203708#M187649</link>
      <description>&lt;P&gt;I tried this and I keep getting no results found.  However, it works if I use a single field or use OR instead of AND. Just need results when either are False. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 16:23:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203708#M187649</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-15T16:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: where field 1 or field 2 equals False</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203709#M187650</link>
      <description>&lt;P&gt;From your 2nd para, it looks like you need this. This will ensure at least one of them is false and both are NOT true and both are not false.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where field1!=field2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Feb 2016 16:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203709#M187650</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-15T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: where field 1 or field 2 equals False</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203710#M187651</link>
      <description>&lt;P&gt;Sorry that must have been confusing. I want the results where both answers are false. &lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 16:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203710#M187651</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-15T16:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: where field 1 or field 2 equals False</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203711#M187652</link>
      <description>&lt;P&gt;Hi, I'm reading your question again and your 1st paragraph contradicts your second one.&lt;/P&gt;

&lt;P&gt;In summary:&lt;/P&gt;

&lt;P&gt;Both fields are false at the same time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where field1 ="False" AND field2 ="False"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;One of them is false and the other true:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where field1 != field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;One of them is false and the other don't care:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where field1 ="False"

| where field2 ="False"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203711#M187652</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-15T17:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: where field 1 or field 2 equals False</title>
      <link>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203712#M187653</link>
      <description>&lt;P&gt;In that case @javiergn's answer is what you're looking for. No result doesn't necessarily mean it didn't work, your data could be like that. Can you check manually to see if there really is a data satisfying your condition?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:19:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/where-field-1-or-field-2-equals-False/m-p/203712#M187653</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-15T17:19:52Z</dc:date>
    </item>
  </channel>
</rss>

