<?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: Omitting matching fields unless blank in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Omitting-matching-fields-unless-blank/m-p/391628#M114018</link>
    <description>&lt;P&gt;Try this:  &lt;CODE&gt;| where field1 != field2 AND (field1 != "" OR field2 != "")&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 11:32:12 GMT</pubDate>
    <dc:creator>chrisyounger</dc:creator>
    <dc:date>2019-04-05T11:32:12Z</dc:date>
    <item>
      <title>Omitting matching fields unless blank</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Omitting-matching-fields-unless-blank/m-p/391627#M114017</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to omit rows that contain matching fields, unless those fields are blank. Example syntax below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where field1 != field2 UNLESS field1=" "
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Obviously the UNLESS won't work, but I've put it in there for arguments sake. An OR doesn't work in the above syntax, as if field1 is blank, field2 is blank too which would make the NOT EQUALS result in omitting the row.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:28:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Omitting-matching-fields-unless-blank/m-p/391627#M114017</guid>
      <dc:creator>aherrington</dc:creator>
      <dc:date>2019-04-05T11:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Omitting matching fields unless blank</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Omitting-matching-fields-unless-blank/m-p/391628#M114018</link>
      <description>&lt;P&gt;Try this:  &lt;CODE&gt;| where field1 != field2 AND (field1 != "" OR field2 != "")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:32:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Omitting-matching-fields-unless-blank/m-p/391628#M114018</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-04-05T11:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Omitting matching fields unless blank</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Omitting-matching-fields-unless-blank/m-p/391629#M114019</link>
      <description>&lt;P&gt;Ended up having to convert one of my fields using the &lt;CODE&gt;eval field=tostring(field1)&lt;/CODE&gt; to get the comparison to work in the end, but it worked as expected. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 13:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Omitting-matching-fields-unless-blank/m-p/391629#M114019</guid>
      <dc:creator>aherrington</dc:creator>
      <dc:date>2019-04-05T13:33:08Z</dc:date>
    </item>
  </channel>
</rss>

