<?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: Why does Splunk auto fillnull my timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214231#M62827</link>
    <description>&lt;P&gt;What version of Splunk are you using? Do you get the same behaviour if you use following?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main level=*| timechart count by level
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 27 Sep 2016 04:11:38 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-09-27T04:11:38Z</dc:date>
    <item>
      <title>Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214230#M62826</link>
      <description>&lt;P&gt;Did this change occur recently?  Why would timechart auto fillnull my field in a timechart?&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
&lt;EM&gt;index=main | timechart count by level&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;RESULT:&lt;BR /&gt;
I get a level=NULL* value in my table (Verified that there is no level=NULL in my data)&lt;/P&gt;

&lt;P&gt;Search Inspector shows:&lt;BR /&gt;
litsearch index=main | addinfo type=count label=prereport_events | fields keepcolorder=t "&lt;EM&gt;time" "level" "prestats_reserved&lt;/EM&gt;&lt;EM&gt;" "psrsvd_&lt;/EM&gt;" | prebin _time span=rtspan | &lt;EM&gt;fillnull value=NULL "level"&lt;/EM&gt; | prestats count by _time level&lt;/P&gt;

&lt;P&gt;** index=main | stats count by level&lt;BR /&gt;
does NOT insert a fillnull on my level field.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214230#M62826</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2020-09-29T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214231#M62827</link>
      <description>&lt;P&gt;What version of Splunk are you using? Do you get the same behaviour if you use following?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main level=*| timechart count by level
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Sep 2016 04:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214231#M62827</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-09-27T04:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214232#M62828</link>
      <description>&lt;P&gt;you said "in your table" are you using timechart to create a table of events by time?  If so I think you should use | stats count by level, _time instead of timechart.&lt;/P&gt;

&lt;P&gt;Can you try that and let us know the results?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 04:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214232#M62828</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-27T04:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214233#M62829</link>
      <description>&lt;P&gt;It might not solve for the WHY but it will fix the issue. If you are not concerned with what the null's are.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main | timechart count by level usenull=f
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you are not concerned with what the null's are.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 13:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214233#M62829</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2016-09-27T13:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214234#M62830</link>
      <description>&lt;P&gt;Yes, using level=* filter is the obvious.  Question is whether this behavior changed.  stats doesn't inject a fillnull  -- timechart does inject a fillnull.&lt;/P&gt;

&lt;P&gt;Version is tagged 6.3.4.&lt;/P&gt;

&lt;P&gt;Either stats or timechart produces a table.  &lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214234#M62830</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2016-09-27T21:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214235#M62831</link>
      <description>&lt;P&gt;Yes the solution to workaround the unwanted fill nulls is to use level=* filter in the base query.&lt;/P&gt;

&lt;P&gt;However, this is not required for stats -- and just wondering when the change to timechart occurred (to inject fillnull value=NULL automatically) or maybe I just wasn't paying attention to timechart behavior all of these years.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214235#M62831</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2016-09-27T21:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214236#M62832</link>
      <description>&lt;P&gt;I've never seen nulls crop up in timechart unless there was some value, either in the data or generated by an eval producing it. &lt;/P&gt;

&lt;P&gt;I know stats is not showing your nulls, and I think you already tried level=*. The only thing I can think of is to see if running a subsearch after the timechart (or chart) might work, with a |search level=null and see if you get a result. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214236#M62832</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2016-10-03T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Splunk auto fillnull my timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214237#M62833</link>
      <description>&lt;P&gt;search level=null returns nothing and the job inspector clearly shows that Splunk is adding: &lt;/P&gt;

&lt;P&gt;| fillnull value=NULL "level" &lt;/P&gt;

&lt;P&gt;This is why I suspect something has changed in recent versions -- this is version 6.3.4.  I'm a long time Splunk user and this is the first time I've noticed it .. or like I said, I wasn't paying attention previously which I doubt as I've previously created workarounds for missing spans due to non-existent values.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 04:09:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-Splunk-auto-fillnull-my-timechart/m-p/214237#M62833</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2016-10-04T04:09:06Z</dc:date>
    </item>
  </channel>
</rss>

