<?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: Top syntax to display null fields when using 'by'? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-syntax-to-display-null-fields-when-using-by/m-p/15353#M1869</link>
    <description>&lt;P&gt;The best way to do this is to use the &lt;CODE&gt;fillnull&lt;/CODE&gt; command to make the desired fields dense. In this case, you could try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fillnull value=NULL person infection | top person by infection
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 13 Jun 2010 05:27:45 GMT</pubDate>
    <dc:creator>Stephen_Sorkin</dc:creator>
    <dc:date>2010-06-13T05:27:45Z</dc:date>
    <item>
      <title>Top syntax to display null fields when using 'by'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-syntax-to-display-null-fields-when-using-by/m-p/15352#M1868</link>
      <description>&lt;P&gt;When I use 'top' to create a top &lt;EM&gt;n&lt;/EM&gt; list of fields, and I add two fields, using &lt;EM&gt;by&lt;/EM&gt;, so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;top field1 by field2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if either field is not present in a result, it does not display in the list. I want to display events in my results even the secondary field is null. Is there any way to do this?&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;top infected person by infection
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Even if I don't know what infection it is, I still want them to show up on the list of infected people, and I still want to see the infection if it is available.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2010 01:52:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-syntax-to-display-null-fields-when-using-by/m-p/15352#M1868</guid>
      <dc:creator>Tisiphone_1</dc:creator>
      <dc:date>2010-06-13T01:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Top syntax to display null fields when using 'by'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-syntax-to-display-null-fields-when-using-by/m-p/15353#M1869</link>
      <description>&lt;P&gt;The best way to do this is to use the &lt;CODE&gt;fillnull&lt;/CODE&gt; command to make the desired fields dense. In this case, you could try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | fillnull value=NULL person infection | top person by infection
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Jun 2010 05:27:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-syntax-to-display-null-fields-when-using-by/m-p/15353#M1869</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-06-13T05:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Top syntax to display null fields when using 'by'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-syntax-to-display-null-fields-when-using-by/m-p/15354#M1870</link>
      <description>&lt;P&gt;Thanks a ton, Stephen!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2010 05:29:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-syntax-to-display-null-fields-when-using-by/m-p/15354#M1870</guid>
      <dc:creator>Tisiphone_1</dc:creator>
      <dc:date>2010-06-13T05:29:59Z</dc:date>
    </item>
  </channel>
</rss>

