<?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 FillNull In Timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355237#M105108</link>
    <description>&lt;P&gt;Hi, I'm wondering whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;I'm using the following to extract metrics for a number of dimension values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`wso2_wmf(RequestCompleted)` 
request.detail.Context="levy" OR
request.detail.Context="rates-list" OR
request.detail.Context="emp" OR
request.detail.Context="identity-verification" 
| fields request.detail.Context
| timechart span=1d limit=100 count by request.detail.Context
| fillnull value=0 request.detail.Contex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem I have is around the zero values and the 'fillnull'. It basically doesn't work.&lt;/P&gt;

&lt;P&gt;I've tried shifting the position of the row within the query. I've then tried using usenull=t usestr=0 in the timechart line, but none of this works.&lt;/P&gt;

&lt;P&gt;I just wondered whether someone may be able to point out where I've gone wrong?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Sun, 22 Apr 2018 16:00:05 GMT</pubDate>
    <dc:creator>IRHM73</dc:creator>
    <dc:date>2018-04-22T16:00:05Z</dc:date>
    <item>
      <title>FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355237#M105108</link>
      <description>&lt;P&gt;Hi, I'm wondering whether someone may be able to help me please.&lt;/P&gt;

&lt;P&gt;I'm using the following to extract metrics for a number of dimension values:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`wso2_wmf(RequestCompleted)` 
request.detail.Context="levy" OR
request.detail.Context="rates-list" OR
request.detail.Context="emp" OR
request.detail.Context="identity-verification" 
| fields request.detail.Context
| timechart span=1d limit=100 count by request.detail.Context
| fillnull value=0 request.detail.Contex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem I have is around the zero values and the 'fillnull'. It basically doesn't work.&lt;/P&gt;

&lt;P&gt;I've tried shifting the position of the row within the query. I've then tried using usenull=t usestr=0 in the timechart line, but none of this works.&lt;/P&gt;

&lt;P&gt;I just wondered whether someone may be able to point out where I've gone wrong?&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355237#M105108</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2018-04-22T16:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355238#M105109</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`wso2_wmf(RequestCompleted)` 
 request.detail.Context="levy" OR
 request.detail.Context="rates-list" OR
 request.detail.Context="emp" OR
 request.detail.Context="identity-verification" 
 | fields request.detail.Context
 | timechart span=1d limit=100 count by request.detail.Context
| eval request.detail.Context=if(request.detail.Context="",0,'request.detail.Context')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355238#M105109</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-04-22T16:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355239#M105110</link>
      <description>&lt;P&gt;Hi @skoelpin, thank you for taking the time to come back to me with this, but unfortunately it doesn't return any of the zero values.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355239#M105110</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2018-04-22T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355240#M105111</link>
      <description>&lt;P&gt;I'm thinking it could be due to the fieldname. Try this to test it out &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=1d limit=100 count by request.detail.Context
| rename "request.detail.Context" AS Request
 | eval Request=if(Request="",0,'Request')
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355240#M105111</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-04-22T16:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355241#M105112</link>
      <description>&lt;P&gt;Hi thank you for coming back to me.&lt;/P&gt;

&lt;P&gt;Unfortunately this doesn't make any difference to the figures returned.&lt;/P&gt;

&lt;P&gt;Many thanks and regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355241#M105112</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2018-04-22T16:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355242#M105113</link>
      <description>&lt;P&gt;You are not making sense.  You search says to get only events that HAVE A VALUE for  field &lt;CODE&gt;request.detail.Context&lt;/CODE&gt; (and furthermore that the value must be in this set: &lt;CODE&gt;levy&lt;/CODE&gt; OR &lt;CODE&gt;rates-list&lt;/CODE&gt; OR &lt;CODE&gt;emp&lt;/CODE&gt; OR &lt;CODE&gt;identity-verification&lt;/CODE&gt; ).  Given this, it is IMPOSSIBLE to have a results set with any non-null value for &lt;CODE&gt;request.detail.Context&lt;/CODE&gt;.  So lets back up.  Show a minimalist sample dataset.  Show us the results that you are getting right now for your search, and mockup your desired result, pointing out the difference between the last two.  As written right now, it is impossible for anyone to give you an answer.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 16:57:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355242#M105113</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-22T16:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355243#M105114</link>
      <description>&lt;P&gt;@woodcock the issue seems to be around the span.&lt;/P&gt;

&lt;P&gt;If I set my date range to 2, 3, or even 4 days, then I'm retrieving the zero metric columns. However when I set the date range to say 'yesterday' that is when the issue occurs.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 18:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355243#M105114</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2018-04-22T18:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355244#M105115</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;Thank you for your time and trouble.&lt;/P&gt;

&lt;P&gt;I found the solution here: &lt;A href="https://answers.splunk.com/answers/523189/how-to-use-timechart-count-to-return-0-when-value.html"&gt;https://answers.splunk.com/answers/523189/how-to-use-timechart-count-to-return-0-when-value.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Have a good day.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 18:17:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355244#M105115</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2018-04-22T18:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: FillNull In Timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355245#M105116</link>
      <description>&lt;P&gt;It is still unclear what the "issue" is.  It would be crystal clear if you exemplified it as I suggested.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 19:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/FillNull-In-Timechart/m-p/355245#M105116</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-22T19:22:01Z</dc:date>
    </item>
  </channel>
</rss>

