<?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 exclude NULL return fields from my search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331859#M98698</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;eventtype=qualys_vm_detection_event STATUS!="FIXED" 
| fillnull value=- PROTOCOL
| dedup 1 HOST_ID, QID, PROTOCOL, STATUS keepempty=true sortby -_time  
| stats list(HOST_ID) as HOST_ID, list(DNS) as Host_Name, list(OS), list(IP) as IP count(HOST_ID) by QID 
| rename count(HOST_ID) AS HOSTS
| lookup qualys_kb_lookup QID OUTPUT TITLE SEVERITY PATCHABLE  
| table TITLE, CATEGORY, PATCHABLE, QID, HOSTS
| sort - HOSTS
| head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using &lt;CODE&gt;TITLE=*&lt;/CODE&gt; or &lt;CODE&gt;TITLE!=""&lt;/CODE&gt; is not returning any results at all...&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 15:30:25 GMT</pubDate>
    <dc:creator>rkaakaty</dc:creator>
    <dc:date>2017-05-31T15:30:25Z</dc:date>
    <item>
      <title>How to exclude NULL return fields from my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331859#M98698</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;eventtype=qualys_vm_detection_event STATUS!="FIXED" 
| fillnull value=- PROTOCOL
| dedup 1 HOST_ID, QID, PROTOCOL, STATUS keepempty=true sortby -_time  
| stats list(HOST_ID) as HOST_ID, list(DNS) as Host_Name, list(OS), list(IP) as IP count(HOST_ID) by QID 
| rename count(HOST_ID) AS HOSTS
| lookup qualys_kb_lookup QID OUTPUT TITLE SEVERITY PATCHABLE  
| table TITLE, CATEGORY, PATCHABLE, QID, HOSTS
| sort - HOSTS
| head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Using &lt;CODE&gt;TITLE=*&lt;/CODE&gt; or &lt;CODE&gt;TITLE!=""&lt;/CODE&gt; is not returning any results at all...&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 15:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331859#M98698</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-05-31T15:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude NULL return fields from my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331860#M98699</link>
      <description>&lt;P&gt;Use this to exclude null values on your stats command &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;usenull=f&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 15:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331860#M98699</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-05-31T15:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude NULL return fields from my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331861#M98700</link>
      <description>&lt;P&gt;Since you are getting the TITLE field from lookup, you can add the following where clause after lookup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   | lookup qualys_kb_lookup QID OUTPUT TITLE SEVERITY PATCHABLE 
   | where isnotnull(TITLE)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 May 2017 15:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331861#M98700</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-05-31T15:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude NULL return fields from my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331862#M98701</link>
      <description>&lt;P&gt;You should be able to use either of these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search TITLE="*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where isnotnull(TITLE)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 May 2017 15:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331862#M98701</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-31T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude NULL return fields from my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331863#M98702</link>
      <description>&lt;P&gt;@rkaakaty Please accept the answer is it has resolved your issue.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 04:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331863#M98702</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-06-01T04:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude NULL return fields from my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331864#M98703</link>
      <description>&lt;P&gt;Either try from the following &lt;/P&gt;

&lt;P&gt;a. search | where isnull() &lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;b. FieldName != ''&lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;c.   len(FieldName  )&amp;gt; 0  &lt;/P&gt;

&lt;P&gt;Option (c) works pretty good.&lt;/P&gt;

&lt;P&gt;if this solves your prolem, spare a moment to reward points.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 05:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331864#M98703</guid>
      <dc:creator>nit123</dc:creator>
      <dc:date>2017-06-01T05:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude NULL return fields from my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331865#M98704</link>
      <description>&lt;P&gt;Does my answer above solve your question ? If yes, spare a moment to accept the answer and vote for it. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2017 13:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-exclude-NULL-return-fields-from-my-search/m-p/331865#M98704</guid>
      <dc:creator>nit123</dc:creator>
      <dc:date>2017-07-15T13:43:04Z</dc:date>
    </item>
  </channel>
</rss>

