<?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 How to chart eventless days without losing drilldown after a _time field format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128381#M34842</link>
    <description>&lt;P&gt;Hi there fellas, &lt;/P&gt;

&lt;P&gt;I'm having troubles trying to chart eventless days when they are the first events to plot in a chronological order. What I'm trying to say is, if I want to chart from day 1 to 15, and let's say 1-2-3 are empty my chart starts from day 4.&lt;/P&gt;

&lt;P&gt;My first attempt was "kinda okey", but since I've formatted &lt;CODE&gt;_time&lt;/CODE&gt; field I couldn't drilldown anymore. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;my_search | timechart count span=1d | rename _time AS Time, count as Quantity | eval Time=strftime(Time, "%d-%m")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In my second attempt, I was able to drilldown but couldn't chart first eventless days. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;my_search | eval Time = _time | chart count as Quantity by Time span=1d | eval Time=strftime(Time, "%d-%m")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sidenote:&lt;/STRONG&gt; &lt;EM&gt;fillnull &amp;amp; makecontinuous didn't work. I've also tried to append fake data but I couldn't make it happen&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;What am I doing wrong ? Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;EDIT: Recently I've created a dashboard and tried to drilldown to another form to avoid this but I'm facing the same issue. Formatted &lt;CODE&gt;_time&lt;/CODE&gt; field = 0 events when drilldown. &lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2014 14:04:47 GMT</pubDate>
    <dc:creator>alemarzu</dc:creator>
    <dc:date>2014-09-17T14:04:47Z</dc:date>
    <item>
      <title>How to chart eventless days without losing drilldown after a _time field format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128381#M34842</link>
      <description>&lt;P&gt;Hi there fellas, &lt;/P&gt;

&lt;P&gt;I'm having troubles trying to chart eventless days when they are the first events to plot in a chronological order. What I'm trying to say is, if I want to chart from day 1 to 15, and let's say 1-2-3 are empty my chart starts from day 4.&lt;/P&gt;

&lt;P&gt;My first attempt was "kinda okey", but since I've formatted &lt;CODE&gt;_time&lt;/CODE&gt; field I couldn't drilldown anymore. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;my_search | timechart count span=1d | rename _time AS Time, count as Quantity | eval Time=strftime(Time, "%d-%m")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In my second attempt, I was able to drilldown but couldn't chart first eventless days. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;my_search | eval Time = _time | chart count as Quantity by Time span=1d | eval Time=strftime(Time, "%d-%m")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Sidenote:&lt;/STRONG&gt; &lt;EM&gt;fillnull &amp;amp; makecontinuous didn't work. I've also tried to append fake data but I couldn't make it happen&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;What am I doing wrong ? Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;EDIT: Recently I've created a dashboard and tried to drilldown to another form to avoid this but I'm facing the same issue. Formatted &lt;CODE&gt;_time&lt;/CODE&gt; field = 0 events when drilldown. &lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:04:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128381#M34842</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2014-09-17T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart eventless days without losing drilldown after a _time field format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128382#M34843</link>
      <description>&lt;P&gt;Any specific reason why you're not using &lt;CODE&gt;timechart&lt;/CODE&gt;? It seems you're doing exactly what timechart would do but are missing the extra thing that timechart also does, which is include periods with no events. Using timechart, your search could be rewritten to simply this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my_search | timechart span=1d count as Quantity
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:32:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128382#M34843</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-09-17T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart eventless days without losing drilldown after a _time field format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128383#M34844</link>
      <description>&lt;P&gt;Ayn,&lt;/P&gt;

&lt;P&gt;I understand what you are suggesting, but I'm not using timechart because I was trying to show %d-%m" for each day under the x-axis, and when I format _time field to do that, drilldown doesn't work anymore. Besides that there's no other reason.&lt;/P&gt;

&lt;P&gt;Any other idea/solution ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2014 15:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128383#M34844</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2014-09-17T15:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart eventless days without losing drilldown after a _time field format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128384#M34845</link>
      <description>&lt;P&gt;I don't have data to test this right now but would usenull=f work?&lt;/P&gt;

&lt;P&gt;chart count as Quantity by Time &lt;STRONG&gt;usenull=f&lt;/STRONG&gt; span=1d&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 15:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128384#M34845</guid>
      <dc:creator>Jeff_Lightly_Sp</dc:creator>
      <dc:date>2014-09-19T15:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart eventless days without losing drilldown after a _time field format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128385#M34846</link>
      <description>&lt;P&gt;Nope Jeff, it won't work.&lt;/P&gt;

&lt;P&gt;Main problem actually is to format &lt;CODE&gt;_time&lt;/CODE&gt; the way I want without losing drilldown because right now returns 0 results, and If i don't, it works.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 18:16:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128385#M34846</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2014-09-19T18:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart eventless days without losing drilldown after a _time field format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128386#M34847</link>
      <description>&lt;P&gt;Perhaps there's another way to accomplish what I'm looking for ? Is it possible ?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Wanted outcome;&lt;/STRONG&gt; Plot &lt;CODE&gt;count&lt;/CODE&gt;(y-axis) of events over days(x-axis), eventless days also. And format time to &lt;STRONG&gt;"%d-%m"&lt;/STRONG&gt; without losing drilldown in the process. &lt;/P&gt;

&lt;P&gt;In my previous attempts after formatting &lt;CODE&gt;_time&lt;/CODE&gt;, drilldown returns 0 results.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 14:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128386#M34847</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2014-09-26T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart eventless days without losing drilldown after a _time field format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128387#M34848</link>
      <description>&lt;P&gt;I've made it.&lt;/P&gt;

&lt;P&gt;I did not replace my old timechart query, what I did was a simple drilldown redirection. Something like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;drilldown target="_blank"&amp;gt;
   &amp;lt;link&amp;gt;
     &amp;lt;![CDATA[search?q="my_main_search"&amp;amp;earliest=$token.earliest$&amp;amp;latest=$token.latest$]&amp;gt;
   &amp;lt;/link&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Sep 2014 16:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-eventless-days-without-losing-drilldown-after-a/m-p/128387#M34848</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2014-09-26T16:30:52Z</dc:date>
    </item>
  </channel>
</rss>

