<?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: Search results include fields with no values, can this be done? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42647#M9976</link>
    <description>&lt;P&gt;You need fillnull before your stats command, not after.&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2013 12:21:50 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-05-23T12:21:50Z</dc:date>
    <item>
      <title>Search results include fields with no values, can this be done?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42643#M9972</link>
      <description>&lt;P&gt;Is it possible to get search results in a table when only some of the results will have all the fields associated with them?&lt;/P&gt;

&lt;P&gt;Currently I cannot get this to work.&lt;/P&gt;

&lt;P&gt;For example....&lt;/P&gt;

&lt;TABLE class="tableizer-table"&gt;
&lt;TBODY&gt;&lt;TR class="tableizer-firstrow"&gt;&lt;TH&gt;Date&lt;/TH&gt;&lt;TH&gt;Time&lt;/TH&gt;&lt;TH&gt;User&lt;/TH&gt;&lt;TH&gt;URL&lt;/TH&gt;&lt;TH&gt;Term&lt;/TH&gt;&lt;TH&gt;Product&lt;/TH&gt;&lt;/TR&gt;
 &lt;TR&gt;&lt;TD&gt;15/05/2013&lt;/TD&gt;&lt;TD&gt;10:01:02&lt;/TD&gt;&lt;TD&gt;User123456&lt;/TD&gt;&lt;TD&gt;/Home/&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;
 &lt;TR&gt;&lt;TD&gt;15/05/2013&lt;/TD&gt;&lt;TD&gt;10:01:32&lt;/TD&gt;&lt;TD&gt;User123456&lt;/TD&gt;&lt;TD&gt;/Products/&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;
 &lt;TR&gt;&lt;TD&gt;15/05/2013&lt;/TD&gt;&lt;TD&gt;10:01:53&lt;/TD&gt;&lt;TD&gt;User123456&lt;/TD&gt;&lt;TD&gt;/Products/Product1/&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;ID12345678&lt;/TD&gt;&lt;/TR&gt;
 &lt;TR&gt;&lt;TD&gt;15/05/2013&lt;/TD&gt;&lt;TD&gt;10:02:42&lt;/TD&gt;&lt;TD&gt;User123456&lt;/TD&gt;&lt;TD&gt;/Search/&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;
 &lt;TR&gt;&lt;TD&gt;15/05/2013&lt;/TD&gt;&lt;TD&gt;10:03:12&lt;/TD&gt;&lt;TD&gt;User123456&lt;/TD&gt;&lt;TD&gt;/Search/Results/&lt;/TD&gt;&lt;TD&gt;Car&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;/TR&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 22 May 2013 15:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42643#M9972</guid>
      <dc:creator>DanielFordWA</dc:creator>
      <dc:date>2013-05-22T15:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Search results include fields with no values, can this be done?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42644#M9973</link>
      <description>&lt;P&gt;fillnull?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fillnull value="-" Term Product | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2013 15:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42644#M9973</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-22T15:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search results include fields with no values, can this be done?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42645#M9974</link>
      <description>&lt;P&gt;If in my search query I use the below...&lt;/P&gt;

&lt;P&gt;stats count by Date Time User URL Term | Fields Date Time User URL Term | fillnull value="-" Term &lt;/P&gt;

&lt;P&gt;This will only return the last result on the above table. The previous 4 results do not have the field "Term" associated with them, however I would like these to populate with a blank if that is the case.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 11:52:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42645#M9974</guid>
      <dc:creator>DanielFordWA</dc:creator>
      <dc:date>2013-05-23T11:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search results include fields with no values, can this be done?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42646#M9975</link>
      <description>&lt;P&gt;I usually use &lt;STRONG&gt;eval&lt;/STRONG&gt; to handle these.  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...my search params... | eval TermProduct=if(isnull(TermProduct),"None",TermProduct) | ...other search params...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then adjust your search to account for "None" (or whatever you want to &lt;STRONG&gt;eval&lt;/STRONG&gt; it to) in that field.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 12:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42646#M9975</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2013-05-23T12:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search results include fields with no values, can this be done?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42647#M9976</link>
      <description>&lt;P&gt;You need fillnull before your stats command, not after.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2013 12:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-results-include-fields-with-no-values-can-this-be-done/m-p/42647#M9976</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-23T12:21:50Z</dc:date>
    </item>
  </channel>
</rss>

