<?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 Remove rows with NULL from final search output in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-rows-with-NULL-from-final-search-output/m-p/301587#M90809</link>
    <description>&lt;P&gt;My working query returns a table with some NULL fields. This is because the query match the initial result with a lookup table. &lt;/P&gt;

&lt;P&gt;How can I remove exclude all entries with atleast 1 NULL field from the final table?  &lt;/P&gt;

&lt;P&gt;Working Code: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   sourcetype="WinEventLog:ForwardedEvents"  EventCode=XXX field46="*" | rex field=field46 "(?&amp;lt;ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:)(?&amp;lt;ports&amp;gt;\d+)\s+\w+\W(?&amp;lt;Account&amp;gt;.*)" | dedup ip Account| stats values(ip) as Source_IP dc(ip) as count by Account| sort count desc | table Account count | head 100 | lookup GenericAccountDumpList Account OUTPUTNEW Column1 Column2 Column3 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Account      Count       Column1  Column2  Column3 
Anna           100           abc            cde            efg 
Brad           9             xyz            jjj             jlm
Terry          71            qyn            jjj             jlm
Andy           78            qyn                                     -&amp;gt; must be excluded, some columns are NULL / empty 
Maria          30                                                       -&amp;gt; must be excluded, some columns are NULL / empty 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Jan 2018 01:11:36 GMT</pubDate>
    <dc:creator>gingyish</dc:creator>
    <dc:date>2018-01-11T01:11:36Z</dc:date>
    <item>
      <title>Remove rows with NULL from final search output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-rows-with-NULL-from-final-search-output/m-p/301587#M90809</link>
      <description>&lt;P&gt;My working query returns a table with some NULL fields. This is because the query match the initial result with a lookup table. &lt;/P&gt;

&lt;P&gt;How can I remove exclude all entries with atleast 1 NULL field from the final table?  &lt;/P&gt;

&lt;P&gt;Working Code: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   sourcetype="WinEventLog:ForwardedEvents"  EventCode=XXX field46="*" | rex field=field46 "(?&amp;lt;ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:)(?&amp;lt;ports&amp;gt;\d+)\s+\w+\W(?&amp;lt;Account&amp;gt;.*)" | dedup ip Account| stats values(ip) as Source_IP dc(ip) as count by Account| sort count desc | table Account count | head 100 | lookup GenericAccountDumpList Account OUTPUTNEW Column1 Column2 Column3 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Account      Count       Column1  Column2  Column3 
Anna           100           abc            cde            efg 
Brad           9             xyz            jjj             jlm
Terry          71            qyn            jjj             jlm
Andy           78            qyn                                     -&amp;gt; must be excluded, some columns are NULL / empty 
Maria          30                                                       -&amp;gt; must be excluded, some columns are NULL / empty 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jan 2018 01:11:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-rows-with-NULL-from-final-search-output/m-p/301587#M90809</guid>
      <dc:creator>gingyish</dc:creator>
      <dc:date>2018-01-11T01:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove rows with NULL from final search output</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-rows-with-NULL-from-final-search-output/m-p/301588#M90810</link>
      <description>&lt;P&gt;If field names are fixed&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)|search Column1=*  Column2=*  Column3=*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jan 2018 01:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-rows-with-NULL-from-final-search-output/m-p/301588#M90810</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-01-11T01:43:06Z</dc:date>
    </item>
  </channel>
</rss>

