<?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: timechart: fill values in empty slots in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135805#M37157</link>
    <description>&lt;P&gt;take a look at the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/CommonStatsFunctions&lt;/A&gt; for all available functions for &lt;CODE&gt;timechart&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Nov 2014 13:16:35 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-11-27T13:16:35Z</dc:date>
    <item>
      <title>timechart: fill values in empty slots</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135801#M37153</link>
      <description>&lt;P&gt;Assuming I have the following log entries&lt;/P&gt;

&lt;P&gt;2014-11-01 foo=bar&lt;BR /&gt;
2014-11-02 foo=bax&lt;/P&gt;

&lt;P&gt;With the search &lt;CODE&gt;| timechart span=1d count&lt;/CODE&gt; only the days get plottet where actually an entries exists, but not on that days that have been happening since the last entry and now.&lt;BR /&gt;
Is there a simple way to fill those gaps?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135801#M37153</guid>
      <dc:creator>zaphod1984</dc:creator>
      <dc:date>2014-11-27T12:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: timechart: fill values in empty slots</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135802#M37154</link>
      <description>&lt;P&gt;Hi zaphod1984,&lt;/P&gt;

&lt;P&gt;take a look at this answer to get more details &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/176466/how-to-use-eval-if-there-is-no-result-from-the-bas-1.html"&gt;http://answers.splunk.com/answers/176466/how-to-use-eval-if-there-is-no-result-from-the-bas-1.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;but you can do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count AS myCount by foo, _time | timechart span=1d sum(myCount) AS count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this way you would get a &lt;CODE&gt;0&lt;/CODE&gt; for days with no events.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135802#M37154</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-11-27T12:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: timechart: fill values in empty slots</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135803#M37155</link>
      <description>&lt;P&gt;that's it, thanks!&lt;BR /&gt;
i was hoping that there would be some kind of a parameter for timechart...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135803#M37155</guid>
      <dc:creator>zaphod1984</dc:creator>
      <dc:date>2014-11-27T13:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: timechart: fill values in empty slots</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135804#M37156</link>
      <description>&lt;P&gt;any ideas on how to accompilish this when it comes to averages, medians etc. instead of a simple count?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135804#M37156</guid>
      <dc:creator>zaphod1984</dc:creator>
      <dc:date>2014-11-27T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: timechart: fill values in empty slots</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135805#M37157</link>
      <description>&lt;P&gt;take a look at the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/CommonStatsFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/CommonStatsFunctions&lt;/A&gt; for all available functions for &lt;CODE&gt;timechart&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135805#M37157</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-11-27T13:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: timechart: fill values in empty slots</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135806#M37158</link>
      <description>&lt;P&gt;hi i know the methods that are available but a search like this would not be accurate anymore when using the approach mentioned above: &lt;CODE&gt;... | stats p90(foo) AS myP90Foo _time | timechart span=1d p90(myP90Foo) AS p90Foo&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 14:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135806#M37158</guid>
      <dc:creator>zaphod1984</dc:creator>
      <dc:date>2014-11-27T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: timechart: fill values in empty slots</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135807#M37159</link>
      <description>&lt;P&gt;the &lt;CODE&gt;stats&lt;/CODE&gt; is only there to create empty event counts not to do any aggregation or such, do all this in your timechart &lt;/P&gt;</description>
      <pubDate>Thu, 27 Nov 2014 15:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-fill-values-in-empty-slots/m-p/135807#M37159</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-11-27T15:14:09Z</dc:date>
    </item>
  </channel>
</rss>

