<?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: List times inbetween events when using timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252828#M75652</link>
    <description>&lt;P&gt;You need to do a couple of things.  As @somesoni2 pointed out, you need to create the missing events, but then you also need to fill in the values for those events because the fields will not exist if you do not.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your current search with timechart | makecontinuous _time span=1d | eval VA="values(A)" | streamstats current=t max(VA) AS "values(A)" | fields - VA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may need to adjust slightly depending on how your events are actually aligned but the core is correct.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 02:35:11 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-03-21T02:35:11Z</dc:date>
    <item>
      <title>List times inbetween events when using timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252825#M75649</link>
      <description>&lt;P&gt;Using timechart, I have a a table with a list of dates and a value. However, the dates are non-consecutive (although ordered). I want to add in the missing dates inbetween the current values and backfill the values for the extra dates.&lt;/P&gt;

&lt;P&gt;For example, my data looks like this currently:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   values(A)
2014-05-04  73
2014-05-18  74
2014-06-01  75
2014-06-15  76
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like for this to be transformed into the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   values(A)
2014-05-04  73
2014-05-05  73
2014-05-06  73
....
2014-05-18  74
2014-05-19  74
2014-05-20  74
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Mar 2016 21:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252825#M75649</guid>
      <dc:creator>blhuynh</dc:creator>
      <dc:date>2016-03-18T21:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: List times inbetween events when using timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252826#M75650</link>
      <description>&lt;P&gt;Usually, timechart will produce all the intervening dates with empty values. Can you show the exact commands that you used?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 22:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252826#M75650</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-03-18T22:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: List times inbetween events when using timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252827#M75651</link>
      <description>&lt;P&gt;Try something like thsi&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search with timechart | makecontinuous
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More information on &lt;CODE&gt;makecontinous&lt;/CODE&gt; command &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Makecontinuous"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Makecontinuous&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2016 18:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252827#M75651</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-19T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: List times inbetween events when using timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252828#M75652</link>
      <description>&lt;P&gt;You need to do a couple of things.  As @somesoni2 pointed out, you need to create the missing events, but then you also need to fill in the values for those events because the fields will not exist if you do not.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your current search with timechart | makecontinuous _time span=1d | eval VA="values(A)" | streamstats current=t max(VA) AS "values(A)" | fields - VA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may need to adjust slightly depending on how your events are actually aligned but the core is correct.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 02:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252828#M75652</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-03-21T02:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: List times inbetween events when using timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252829#M75653</link>
      <description>&lt;P&gt;Worked for me! Thanks for elaborating more. &lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252829#M75653</guid>
      <dc:creator>blhuynh</dc:creator>
      <dc:date>2016-03-21T14:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: List times inbetween events when using timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252830#M75654</link>
      <description>&lt;P&gt;Thanks for the help! Worked along with the streamstats suggestion below. &lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 14:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-times-inbetween-events-when-using-timechart/m-p/252830#M75654</guid>
      <dc:creator>blhuynh</dc:creator>
      <dc:date>2016-03-21T14:03:53Z</dc:date>
    </item>
  </channel>
</rss>

