<?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: How to modify my search to graph the same 30 minute time period for previous weeks on the same graph? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-graph-the-same-30-minute-time-period/m-p/272072#M81864</link>
    <description>&lt;P&gt;Appendcols is what you want. You don't need the bucket and stats commands, just timechart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_summary report="volumebyminuteweb" earliest=-30m@m latest=@m |timechart span=5m count as Today | 
appendcols [ 
    search index=web_summary report="volumebyminuteweb" earliest=-30m@m-1w latest=@m-1w |timechart span=5m count as "1 week ago" ] |
appendcols [ 
    search index=web_summary report="volumebyminuteweb" earliest=-30m@m-2w latest=@m-2w |timechart span=5m count as "2 weeks ago" ] | 
appendcols [
    search index=web_summary report="volumebyminuteweb" earliest=-30m@m-3w latest=@m-3w |timechart span=5m count as "3 weeks ago" ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 13 Dec 2016 15:25:12 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2016-12-13T15:25:12Z</dc:date>
    <item>
      <title>How to modify my search to graph the same 30 minute time period for previous weeks on the same graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-graph-the-same-30-minute-time-period/m-p/272071#M81863</link>
      <description>&lt;P&gt;I have a search to graph the last 30 minutes in 5 minute intervals:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_summary report="volumebyminuteweb" earliest=-30m@m latest=now | bucket _time span=5m|stats count by _time |timechart span=5m sum(count)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to also graph the same time period for the previous 7, 14, 21, and 28 days on the same graph.&lt;/P&gt;

&lt;P&gt;How would I modify the query to include the additional time periods?&lt;/P&gt;

&lt;P&gt;Thanks in advance for your assistance.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 15:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-graph-the-same-30-minute-time-period/m-p/272071#M81863</guid>
      <dc:creator>tmurray3</dc:creator>
      <dc:date>2016-12-13T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search to graph the same 30 minute time period for previous weeks on the same graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-graph-the-same-30-minute-time-period/m-p/272072#M81864</link>
      <description>&lt;P&gt;Appendcols is what you want. You don't need the bucket and stats commands, just timechart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_summary report="volumebyminuteweb" earliest=-30m@m latest=@m |timechart span=5m count as Today | 
appendcols [ 
    search index=web_summary report="volumebyminuteweb" earliest=-30m@m-1w latest=@m-1w |timechart span=5m count as "1 week ago" ] |
appendcols [ 
    search index=web_summary report="volumebyminuteweb" earliest=-30m@m-2w latest=@m-2w |timechart span=5m count as "2 weeks ago" ] | 
appendcols [
    search index=web_summary report="volumebyminuteweb" earliest=-30m@m-3w latest=@m-3w |timechart span=5m count as "3 weeks ago" ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2016 15:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-graph-the-same-30-minute-time-period/m-p/272072#M81864</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-12-13T15:25:12Z</dc:date>
    </item>
  </channel>
</rss>

