<?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: Show me all events where field value not present? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470555#M192160</link>
    <description>&lt;P&gt;The way I read your question, you want events that have no value in the source_zone field. If that's the case, try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search | where isnull(source_zone)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to get all results that do not equal "EXT", try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_index your_sourcetype source_zone!=EXT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Dec 2019 14:58:04 GMT</pubDate>
    <dc:creator>mydog8it</dc:creator>
    <dc:date>2019-12-30T14:58:04Z</dc:date>
    <item>
      <title>Show me all events where field value not present?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470552#M192157</link>
      <description>&lt;P&gt;Greetings good people,&lt;/P&gt;

&lt;P&gt;i may be over thinking things or didn't get enough sleep. I need to return results where a field value is not present at all (0%) i.e. no event coverage for the given value. Not field but field value. For example.&lt;/P&gt;

&lt;P&gt;Let's say we have a field called source_zone and possible values of INT, DMZ, or EXT.&lt;/P&gt;

&lt;P&gt;I would like to see all events where there are 0 results for source_zone="EXT". This is not the same as source_zone!="EXT" because that is filtering out the results.&lt;/P&gt;

&lt;P&gt;Kindly advise and thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470552#M192157</guid>
      <dc:creator>yepyepyayyooo</dc:creator>
      <dc:date>2020-09-30T03:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show me all events where field value not present?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470553#M192158</link>
      <description>&lt;P&gt;Finding something that is not there can be challenging.&lt;/P&gt;

&lt;P&gt;Perhaps &lt;A href="https://www.duanewaddle.com/proving-a-negative/"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt; will help.&lt;/P&gt;

&lt;P&gt;There also &lt;CODE&gt;NOT source_zone="EXT"&lt;/CODE&gt; which is not the same as &lt;CODE&gt;source_zone!="EXT"&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 14:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470553#M192158</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-12-30T14:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Show me all events where field value not present?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470554#M192159</link>
      <description>&lt;P&gt;Hi. You can try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index sourcetype=your_sourcetype NOT source_zone=EXT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As per Splunk best practices, however, inclusion is better than exclusion. So if you have a small number of possible values it might be better to search for all the values you want rather than the one you don't.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Search/NOTexpressions"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Search/NOTexpressions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 14:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470554#M192159</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-30T14:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show me all events where field value not present?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470555#M192160</link>
      <description>&lt;P&gt;The way I read your question, you want events that have no value in the source_zone field. If that's the case, try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search | where isnull(source_zone)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to get all results that do not equal "EXT", try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_index your_sourcetype source_zone!=EXT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Dec 2019 14:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470555#M192160</guid>
      <dc:creator>mydog8it</dc:creator>
      <dc:date>2019-12-30T14:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show me all events where field value not present?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470556#M192161</link>
      <description>&lt;P&gt;Doesn't this filter out results? I need to see if condition true show me everything else. I need something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;where source_zone value EXT is nonexistent, show me those results
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Dec 2019 15:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470556#M192161</guid>
      <dc:creator>yepyepyayyooo</dc:creator>
      <dc:date>2019-12-30T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show me all events where field value not present?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470557#M192162</link>
      <description>&lt;P&gt;From the link I posted above: &lt;STRONG&gt;&lt;EM&gt;Searching with NOT - If you search with the NOT operator, every event is returned except the events that contain the value you specify. This includes events that do not have a value in the field.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So unlike !=, it will return events that don't have that value. Not just exclude the ones that have it.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 15:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470557#M192162</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2019-12-30T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show me all events where field value not present?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470558#M192163</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;your_search
| eventstats count(eval(source_zone="EXT")) as check
| where check &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @yepyepyayyooo&lt;BR /&gt;
how about this?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 01:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-me-all-events-where-field-value-not-present/m-p/470558#M192163</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-31T01:06:24Z</dc:date>
    </item>
  </channel>
</rss>

