Refine your search:

on March 13th, -1mon maps to February 13th, at whatever the current time of day is. And -1mon@d maps to February 13th 12AM.

In the dashboard we're dealing with, this is basically what we want.

However it seems like on March 29th, 30th and 31st, ie in cases where that date didnt exist in the previous month it seems splunkd must do something a little arbitrary.

So just to confirm, on all 3 of these days (3/29, 3/30, 3/31) does -1mon just map each to March 1st 12AM?

asked 13 Apr '10, 14:15

nick's gravatar image

nick ♦
14.2k1318
accept rate: 47%

edited 22 Apr '10, 23:13


One Answer:

According to: http://www.splunk.com/base/Documentation/latest/User/ChangeTheTimeRangeOfYourSearch#Syntax_for_relative_time_modifiers

Important: When snapping to the nearest or latest time, Splunk always snaps backwards or rounds down to the latest time not after the specified time. For example, if it is 11:59:00 and you "snap to" hours, you will snap to 11:00 not 12:00.

If this applies, then you would expect it to snap March 29, 30, and 31 to February 28, 11:59:59 PM. In the leap year case, March 29 would map to February 29, at the same time of day.

link

answered 17 Apr '10, 00:01

jrodman's gravatar image

jrodman ♦
5.8k2515
accept rate: 42%

edited 22 Apr '10, 23:14

nick's gravatar image

nick ♦
14.2k1318

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1,083
×196

Asked: 13 Apr '10, 14:15

Seen: 944 times

Last updated: 22 Apr '10, 23:14

Copyright © 2005-2012 Splunk, Inc. All rights reserved.