<?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 specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280782#M84735</link>
    <description>&lt;P&gt;Doesn't &lt;CODE&gt;-1mon@w&lt;/CODE&gt; do exactly what you want? Go back one month, then to the start of that week.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2016 10:48:14 GMT</pubDate>
    <dc:creator>jeffland</dc:creator>
    <dc:date>2016-12-15T10:48:14Z</dc:date>
    <item>
      <title>How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280781#M84734</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;my managers posted a request for data.&lt;BR /&gt;
they want to see weekly comparison over the course of a month.&lt;BR /&gt;
the catch is that if the 1st of a month starts on a Tuesday, they want to see the data from Sunday, which is the last 2 days of the previous month.&lt;BR /&gt;
again, if the 1st starts at Thursday, they want to see data from Sunday etc etc.&lt;/P&gt;

&lt;P&gt;i wanted to know if there is a way to specify an earliest &amp;amp; latest values dynamically by weeks.&lt;BR /&gt;
e.g - &lt;CODE&gt;earliest=-1month@month&lt;/CODE&gt; and snap to Sunday, &lt;CODE&gt;latest=-1month@month&lt;/CODE&gt; and snap to Saturday, and to change those values for each week&lt;/P&gt;

&lt;P&gt;i know that there's an app for that called Timewrap, but installing it is complicated so i'm trying to get a workaround using the search.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280781#M84734</guid>
      <dc:creator>naty</dc:creator>
      <dc:date>2016-12-15T10:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280782#M84735</link>
      <description>&lt;P&gt;Doesn't &lt;CODE&gt;-1mon@w&lt;/CODE&gt; do exactly what you want? Go back one month, then to the start of that week.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:48:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280782#M84735</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2016-12-15T10:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280783#M84736</link>
      <description>&lt;P&gt;to snap the earliest to the first day of the week of the previous month (even if it falls in another month) use &lt;CODE&gt;earliest=-1mon@mon@w&lt;/CODE&gt;&lt;BR /&gt;
 or &lt;CODE&gt;earliest=@mon@w&lt;/CODE&gt;if you just are looking at current month. &lt;/P&gt;

&lt;P&gt;from there to get week over week, you can use &lt;CODE&gt;|bucket _time span=7d&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 12:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280783#M84736</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-12-15T12:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280784#M84737</link>
      <description>&lt;P&gt;Hi @naty - What version of Splunk are you using? Because as of 6.5.0, Splunk added the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/Timewrap"&gt;timewrap&lt;/A&gt; command so you wouldn't have to install the Timewrap add-on. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 00:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280784#M84737</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2016-12-16T00:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280785#M84738</link>
      <description>&lt;P&gt;Hi, thank you for the reply!&lt;BR /&gt;
correct me if i'm wrong, but i think it will do something else.&lt;BR /&gt;
for example - if i'm on the 25th of June and i go -1mon@w, then i'll go to the 25th of May and the start of that week..&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 13:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280785#M84738</guid>
      <dc:creator>naty</dc:creator>
      <dc:date>2016-12-18T13:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280786#M84739</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;
i understood that i can use the Timewrap app using 6.5.&lt;BR /&gt;
luckily for me, we just upgraded to 6.5.1 last week &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;
but this should work too, thank you!!! (didn't know you could do -1mon@mon@w, thought you could only do 1-mon@mon and that's it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 13:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280786#M84739</guid>
      <dc:creator>naty</dc:creator>
      <dc:date>2016-12-18T13:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280787#M84740</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
You saved me!!&lt;BR /&gt;
we actually just upgraded to 6.5.1 last week &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;
i tried the timewrap now and it workd perfectly!!!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Dec 2016 13:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280787#M84740</guid>
      <dc:creator>naty</dc:creator>
      <dc:date>2016-12-18T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280788#M84741</link>
      <description>&lt;P&gt;Hi @aaraneta - about the Timewrap, i saw that it shows a weekly basis based on 7 days.&lt;BR /&gt;
for example, for November i will see a line representing the 24th-30th, another for 17th-23rd and so on until the start of the month.&lt;BR /&gt;
that is because November ended on Thursday, so it takes a week as Thursday till Thursday.&lt;/P&gt;

&lt;P&gt;but i have a question about it since it's not very well documented - the Timewrap will show a weekly basis, but according to my example above for November, the last week i will see is 3rd-9th of November, i still wish to see the 1st &amp;amp; 2nd.&lt;/P&gt;

&lt;P&gt;is it showing that to me?&lt;BR /&gt;
if not, how can i see them on the weekly basis graph?&lt;BR /&gt;
is there a way to do the timewrap without manipulating the _time so i could see the times for every week?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280788#M84741</guid>
      <dc:creator>naty</dc:creator>
      <dc:date>2016-12-20T07:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280789#M84742</link>
      <description>&lt;P&gt;Hi @cmerriman,&lt;/P&gt;

&lt;P&gt;i have tested your answer.&lt;BR /&gt;
the span=7d is not good since i want to see span=1h and compare an hourly span of  every week of the month.&lt;BR /&gt;
let's say that for November, i would like to do a search to get an hourly span from: October 30th - November 5th, November 6th - November 12th, November 13th - November 19th, November 20th - November 26th, November 27th - December 3rd.&lt;/P&gt;

&lt;P&gt;notice that i took the previous month, but i need the start of the month and then snap to the start of the week.&lt;/P&gt;

&lt;P&gt;you gave me an answer for that with earliest=-1mon@mon@w which was excellent, but how do do the latest to snap to the end of that week?&lt;BR /&gt;
also, do you know how to specify the earliest &amp;amp; latest for each week?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280789#M84742</guid>
      <dc:creator>naty</dc:creator>
      <dc:date>2016-12-20T07:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280790#M84743</link>
      <description>&lt;P&gt;maybe try something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|eval weekBegin=strftime(relative_time(_time,"@w"),"%D")|eval weekEnd=strftime(relative_time(_time,"@w6"),"%D")|eval week=weekBegin+" - "+weekEnd|timechart span=1h count by week
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or whatever stats command you needed&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 13:30:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280790#M84743</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2016-12-20T13:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280791#M84744</link>
      <description>&lt;P&gt;Hi @naty - I'm sorry, I'm not an expert on timewrap so unfortunately I wouldn't be able to help you much. But you may have some luck by joining our public Slack chat! &lt;/P&gt;

&lt;P&gt;There are 1300+ Splunk users in our public Slack chat. People ask each other for immediate help on there daily. You can share this follow-up question/link to your post there to see if anyone can take a stab at it.&lt;/P&gt;

&lt;P&gt;You first have to request access through &lt;A href="http://www.splunk402.com/chat"&gt;www.splunk402.com/chat&lt;/A&gt;. Fill out the form, and once you receive the approval email, you can access Slack.com and ask for help in the #general channel.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 03:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280791#M84744</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2016-12-21T03:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify earliest and latest time modifiers to display week over week comparison in a month, snapping to the beginning and end of the week?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280792#M84745</link>
      <description>&lt;P&gt;Right, sorry - &lt;CODE&gt;@mon@w&lt;/CODE&gt; does it, I was going back one month further than needed.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-earliest-and-latest-time-modifiers-to-display/m-p/280792#M84745</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2016-12-21T15:03:52Z</dc:date>
    </item>
  </channel>
</rss>

