<?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 do I compare a Saturday to another Saturday in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43679#M10273</link>
    <description>&lt;P&gt;I want to compare the results from one Saturday to 3-4 prior Saturdays.   The query I am using is created from the postings here and returns the # of events/second that were logged for a particular host.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="Prod_LogHistory"| eval count=1 | timechart per_second(count) as events_per_second
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to see a line chart that could show 3-4 Saturday's on the same chart.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2011 07:23:11 GMT</pubDate>
    <dc:creator>approachct</dc:creator>
    <dc:date>2011-02-14T07:23:11Z</dc:date>
    <item>
      <title>How do I compare a Saturday to another Saturday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43679#M10273</link>
      <description>&lt;P&gt;I want to compare the results from one Saturday to 3-4 prior Saturdays.   The query I am using is created from the postings here and returns the # of events/second that were logged for a particular host.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="Prod_LogHistory"| eval count=1 | timechart per_second(count) as events_per_second
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to see a line chart that could show 3-4 Saturday's on the same chart.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2011 07:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43679#M10273</guid>
      <dc:creator>approachct</dc:creator>
      <dc:date>2011-02-14T07:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare a Saturday to another Saturday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43680#M10274</link>
      <description>&lt;P&gt;You could probably do it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="Prod_LogHistory" earliest=-1mon@w6 | timechart span=1w per_second(count) as events_per_second
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should snap the date back 1 month, round it to Saturday, then show a &lt;STRONG&gt;timechart&lt;/STRONG&gt; with 1 week intervals from Saturday.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2011 10:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43680#M10274</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-14T10:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare a Saturday to another Saturday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43681#M10275</link>
      <description>&lt;P&gt;Is "| eval count=1" leftover text from a test?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2011 10:51:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43681#M10275</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-14T10:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare a Saturday to another Saturday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43682#M10276</link>
      <description>&lt;P&gt;host="Prod_LogHistory" date_wday=saturday earliest=-4w@w6 | eval count=1 | timechart span=24h per_second(count) as events_per_second&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2011 09:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43682#M10276</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-15T09:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare a Saturday to another Saturday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43683#M10277</link>
      <description>&lt;P&gt;This works to just give me the two days, but there is a large gap in the graph.  Is there a way to see the prior weekday on the same graph at a same week day.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2011 22:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43683#M10277</guid>
      <dc:creator>approachct</dc:creator>
      <dc:date>2011-04-08T22:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I compare a Saturday to another Saturday</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43684#M10278</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Comparing week-over-week results used to a pain in Splunk, with complex date calculations. No more.  Now there is a better way.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I wrote a convenient search command called "&lt;A href="http://apps.splunk.com/app/1645/"&gt;timewrap&lt;/A&gt;" that does it all, for arbitrary time periods.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart count span=1h | timewrap w 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;That's it!&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If you want to limit it to a specific day of the week, add: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where strftime(_time, "%A") == "Saturday"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://apps.splunk.com/app/1645/"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;A href="http://apps.splunk.com/app/1645/" target="test_blank"&gt;http://apps.splunk.com/app/1645/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 21:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-compare-a-Saturday-to-another-Saturday/m-p/43684#M10278</guid>
      <dc:creator>carasso</dc:creator>
      <dc:date>2013-12-06T21:42:00Z</dc:date>
    </item>
  </channel>
</rss>

