<?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: What is the best way to search for blank (null) fields in a search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211090#M61729</link>
    <description>&lt;P&gt;so if you wanted to search for two fields such as NULL and inuse would it be something like this: &lt;BR /&gt;
NOT dv_install_status="*" OR dv_install_status="In use"   ? &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:51:22 GMT</pubDate>
    <dc:creator>hastrike</dc:creator>
    <dc:date>2020-09-29T08:51:22Z</dc:date>
    <item>
      <title>What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211083#M61722</link>
      <description>&lt;P&gt;Is there a best way to search for blank fields in a search?  &lt;CODE&gt;isnull()&lt;/CODE&gt; or &lt;CODE&gt;=""&lt;/CODE&gt; doesn't seem to work. Is there way to do this? The only thing we have been able to do is do a f-llnull and then search for those fields we filled in those fields  with a specific term.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 19:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211083#M61722</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-22T19:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211084#M61723</link>
      <description>&lt;P&gt;The isnull should work fine, if you're able to use &lt;CODE&gt;fillnull&lt;/CODE&gt;. Could you post the search that you tried with &lt;CODE&gt;fillnull&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 19:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211084#M61723</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-22T19:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211085#M61724</link>
      <description>&lt;P&gt;I am actually asking on behalf of co-worker. We would like not have to fill in the blank space we just want to find all the fields where it is blank. IsNull didn't seem to be working. The only thing he seemed to be able to use is fillnull  (| fillnull value="Blank" dv_install_status)  then then search for the field where it said blank. Is there any way to search for blank fields with out doing fill null?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211085#M61724</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2020-09-29T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211086#M61725</link>
      <description>&lt;P&gt;If the fillnull is working, I would give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | where isnull(dv_install_status)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2016 19:32:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211086#M61725</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-22T19:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211087#M61726</link>
      <description>&lt;P&gt;so just checking is that searching field dv_install_status for any fields that is null? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211087#M61726</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2020-09-29T08:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211088#M61727</link>
      <description>&lt;P&gt;hi hastrike,&lt;/P&gt;

&lt;P&gt;use  &lt;CODE&gt;NOT field="*"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;for more informations, follow this link:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/28197/how-do-i-search-for-event-with-null-values-in-fields.html"&gt;https://answers.splunk.com/answers/28197/how-do-i-search-for-event-with-null-values-in-fields.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 19:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211088#M61727</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-02-22T19:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211089#M61728</link>
      <description>&lt;P&gt;It's just selecting events where dv_install_status is null.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211089#M61728</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T08:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211090#M61729</link>
      <description>&lt;P&gt;so if you wanted to search for two fields such as NULL and inuse would it be something like this: &lt;BR /&gt;
NOT dv_install_status="*" OR dv_install_status="In use"   ? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:51:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211090#M61729</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2020-09-29T08:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211091#M61730</link>
      <description>&lt;P&gt;&lt;CODE&gt;"In use"&lt;/CODE&gt; is a value of &lt;CODE&gt;*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;just write &lt;CODE&gt;NOT dv_install_status="*"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 20:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211091#M61730</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-02-22T20:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211092#M61731</link>
      <description>&lt;P&gt;We just want to find all the fields with In use as the event or if the field is null. Won't this find any event with the * since that is thee wild card? &lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 20:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211092#M61731</guid>
      <dc:creator>hastrike</dc:creator>
      <dc:date>2016-02-22T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211093#M61732</link>
      <description>&lt;P&gt;NOT dv_install status = "*" will find all the events wherethe value of the field dv_install_status is empty or zero.&lt;/P&gt;

&lt;P&gt;try and see the results because I have already used this option &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211093#M61732</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2020-09-29T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211094#M61733</link>
      <description>&lt;P&gt;thanks, don't forget to  vote&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 20:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211094#M61733</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2016-02-22T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211095#M61734</link>
      <description>&lt;P&gt;Old question, but isnull does work for me. These two searches are equivalent:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=cers  A_Number=04*   | where isnull(MoLiIn)

index=cers  A_Number=04*   NOT MoLiIn=*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:09:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211095#M61734</guid>
      <dc:creator>nigel_pearson_a</dc:creator>
      <dc:date>2018-04-05T07:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to search for blank (null) fields in a search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211096#M61735</link>
      <description>&lt;P&gt;To expand on this, since I recently ran into the very same issue. If you have a search time field extraction and an event that &lt;EM&gt;should&lt;/EM&gt; contain the field but doesn't, you can't do a search for &lt;CODE&gt;fieldname=""&lt;/CODE&gt; because the field doesn't get extracted if it's not there.&lt;/P&gt;

&lt;P&gt;But if you search for events that &lt;EM&gt;should&lt;/EM&gt; contain the field and want to specifically find events that don't have the field set, the following worked for me (the index/sourcetype combo should always have fieldname set in my case):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mysourcetype NOT fieldname=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All of which is a long way of saying make sure you include search criteria that should always find events with that field set.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 12:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-the-best-way-to-search-for-blank-null-fields-in-a-search/m-p/211096#M61735</guid>
      <dc:creator>ehennessey_splu</dc:creator>
      <dc:date>2019-05-14T12:45:18Z</dc:date>
    </item>
  </channel>
</rss>

