<?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 How to search for fields with empty values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175451#M50371</link>
    <description>&lt;P&gt;I'm trying unsuccessfully to select events with fields with empty values.&lt;/P&gt;

&lt;P&gt;How can this be accomplished?&lt;/P&gt;

&lt;P&gt;My events:&lt;/P&gt;

&lt;P&gt;....|responseCode=F10|responseDesc=Invalid|status=SUCCESS|errorCode=0|errorDesc=No Error|&lt;BR /&gt;
....|responseCode=G10|responseDesc=Invalid|status=SUCCESS|errorCode=0|errorDesc=|&lt;BR /&gt;
....|responseCode=G12|responseDesc=Invalid|status=SUCCESS|errorCode=0|errorDesc=|&lt;/P&gt;

&lt;P&gt;So I need to search the events with errorDesc='empty', like the last 2 events.&lt;/P&gt;

&lt;P&gt;I tried the basic stuff, but no luck. Also len(errorDesc) doesn't consider the events.&lt;/P&gt;

&lt;P&gt;I will appreciate any help/guidance.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Aug 2014 21:40:06 GMT</pubDate>
    <dc:creator>snemiro_514</dc:creator>
    <dc:date>2014-08-07T21:40:06Z</dc:date>
    <item>
      <title>How to search for fields with empty values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175451#M50371</link>
      <description>&lt;P&gt;I'm trying unsuccessfully to select events with fields with empty values.&lt;/P&gt;

&lt;P&gt;How can this be accomplished?&lt;/P&gt;

&lt;P&gt;My events:&lt;/P&gt;

&lt;P&gt;....|responseCode=F10|responseDesc=Invalid|status=SUCCESS|errorCode=0|errorDesc=No Error|&lt;BR /&gt;
....|responseCode=G10|responseDesc=Invalid|status=SUCCESS|errorCode=0|errorDesc=|&lt;BR /&gt;
....|responseCode=G12|responseDesc=Invalid|status=SUCCESS|errorCode=0|errorDesc=|&lt;/P&gt;

&lt;P&gt;So I need to search the events with errorDesc='empty', like the last 2 events.&lt;/P&gt;

&lt;P&gt;I tried the basic stuff, but no luck. Also len(errorDesc) doesn't consider the events.&lt;/P&gt;

&lt;P&gt;I will appreciate any help/guidance.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 21:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175451#M50371</guid>
      <dc:creator>snemiro_514</dc:creator>
      <dc:date>2014-08-07T21:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for fields with empty values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175452#M50372</link>
      <description>&lt;P&gt;Hi @snemiro_514&lt;/P&gt;

&lt;P&gt;Have you tried a solution similar to this post?&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/28197/how-do-i-search-for-event-with-null-values-in-fields"&gt;http://answers.splunk.com/answers/28197/how-do-i-search-for-event-with-null-values-in-fields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search... NOT errorDesc="*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Aug 2014 21:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175452#M50372</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-08-07T21:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for fields with empty values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175453#M50373</link>
      <description>&lt;P&gt;Hi, yep!...that worked. I also have found a workaround...&lt;/P&gt;

&lt;P&gt;index ... |  fillnull value="XXX" responseDesc | search responseDesc="XXX"&lt;/P&gt;

&lt;P&gt;Gracias!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 23:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175453#M50373</guid>
      <dc:creator>snemiro_514</dc:creator>
      <dc:date>2014-08-07T23:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for fields with empty values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175454#M50374</link>
      <description>&lt;P&gt;No problemo @snemiro_514 At first I was thinking of the fillnull command too, but I figured there was definitely an easier method. Searched through some Answers posts and found it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2014 23:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175454#M50374</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-08-07T23:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for fields with empty values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175455#M50375</link>
      <description>&lt;P&gt;Thanks for fillnull and search commands!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 07:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-fields-with-empty-values/m-p/175455#M50375</guid>
      <dc:creator>edgars</dc:creator>
      <dc:date>2018-06-07T07:26:37Z</dc:date>
    </item>
  </channel>
</rss>

