<?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 with two different spans in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-two-different-spans/m-p/121234#M32621</link>
    <description>&lt;P&gt;Thanks Nick!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2013 00:48:26 GMT</pubDate>
    <dc:creator>lukeh</dc:creator>
    <dc:date>2013-10-30T00:48:26Z</dc:date>
    <item>
      <title>Timechart with two different spans</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-two-different-spans/m-p/121232#M32619</link>
      <description>&lt;P&gt;Hi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have a chart with one line for Usage (span=1d) and another line for 95th_Percentile (span=30d) but I am using "append" with "makecontinuous _time" - there has gotta be a better way...&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=summary_blah report="CDN1"
| addtotals *Octets*
| fields + Total
| timechart span=1d max(Total) as Usage
| append [search index=summary_blah report="CDN1"
| addtotals *Octets*
| fields + Total
| timechart span=30d perc95(Total) as 95th_Percentile]
| eval Licence_Limit=96
| makecontinuous _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;Luke &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 00:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-two-different-spans/m-p/121232#M32619</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2013-10-30T00:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with two different spans</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-two-different-spans/m-p/121233#M32620</link>
      <description>&lt;P&gt;I would pursue something like this.  &lt;/P&gt;

&lt;P&gt;it gets data off disk only once, does the extra-pass-magic in eventstats instead of gunzipping raw events twice. &lt;BR /&gt;
I've kinda ignored your addtotals &lt;EM&gt;Octets&lt;/EM&gt; here, but I think you can figure out how to get it back. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=summary_mediacap report="CDN1"
| eval day=_time 
| bin day span="1d"
| eval 30DayBucket=_time
| bin 30DayBucket span=30d
| eventstats max(Total) as Usage by day
| eventstats perc95(Total) as 95th_Percentile by 30DayBucket 
| eval Licence_Limit=96
| timechart span="1d" last(Licence_Limit) as Licence_Limit last(95th_Percentile) as 95th_Percentile last(Usage) as Usage
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Oct 2013 00:39:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-two-different-spans/m-p/121233#M32620</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-10-30T00:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with two different spans</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-two-different-spans/m-p/121234#M32621</link>
      <description>&lt;P&gt;Thanks Nick!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2013 00:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-two-different-spans/m-p/121234#M32621</guid>
      <dc:creator>lukeh</dc:creator>
      <dc:date>2013-10-30T00:48:26Z</dc:date>
    </item>
  </channel>
</rss>

