<?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: searching the records of the table with empty field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115592#M30641</link>
    <description>&lt;P&gt;The default value you set as "&lt;EM&gt;" is correct, but the term * will not match any NULL values. You would have to build appropriate filters within your search to ensure that if "&lt;/EM&gt;" is selected in form input (or no selection of input value with default as "*"), it matches NULL/Empty field values as well.&lt;/P&gt;

&lt;P&gt;Something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search ... | eval field1=coalesce(field1,"NA") | search field1=$inputForField1$ 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Jun 2014 14:59:24 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-06-24T14:59:24Z</dc:date>
    <item>
      <title>searching the records of the table with empty field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115589#M30638</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I have an interactive dashboard with form inputs, i have set default value as * for all the form inputs, depends on the input value/values my search has to execute and matched records of the Table has to display in my panel.If any form input is not given,it can take any value including null/empty. If a particular Field of the table is completely empty, search displays "no record found". what is the default value i have to set so that i can get the records of the table eventhough a particular field is empty.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 15:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115589#M30638</guid>
      <dc:creator>Mubarish</dc:creator>
      <dc:date>2014-06-23T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: searching the records of the table with empty field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115590#M30639</link>
      <description>&lt;P&gt;There is no default value that you can set - you will have to take this into account in the search string itself.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 22:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115590#M30639</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-06-23T22:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: searching the records of the table with empty field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115591#M30640</link>
      <description>&lt;P&gt;I referred the below link for assigning default value as "&lt;EM&gt;" for my form inputs.&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.1/Viz/Buildandeditforms"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.1/Viz/Buildandeditforms&lt;/A&gt;&lt;BR /&gt;
We assumed that "&lt;/EM&gt;" takes any non-zero value and execute the search wheras we get "No results found" if any of the field in the log has empty value.Can you please clarify what does "*" means here&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115591#M30640</guid>
      <dc:creator>Mubarish</dc:creator>
      <dc:date>2014-06-24T14:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: searching the records of the table with empty field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115592#M30641</link>
      <description>&lt;P&gt;The default value you set as "&lt;EM&gt;" is correct, but the term * will not match any NULL values. You would have to build appropriate filters within your search to ensure that if "&lt;/EM&gt;" is selected in form input (or no selection of input value with default as "*"), it matches NULL/Empty field values as well.&lt;/P&gt;

&lt;P&gt;Something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search ... | eval field1=coalesce(field1,"NA") | search field1=$inputForField1$ 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/115592#M30641</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-24T14:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: searching the records of the table with empty field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/506578#M141720</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;how do we do this, if we have like multiple inputs which are likely to have NULL values. I tried my hand with fillnull, it works but the search results come back too slow and delayed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 18:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/searching-the-records-of-the-table-with-empty-field/m-p/506578#M141720</guid>
      <dc:creator>cbirajdar</dc:creator>
      <dc:date>2020-06-29T18:56:59Z</dc:date>
    </item>
  </channel>
</rss>

