Splunk Search

Search Time interval

shirolu
Explorer

hello

I have a search problem

I would like to set a time interval

Interval last Monday to last Sunday

if today is 2010/05/31

Time interval 2010/5/24 ~ 2010/5/30 (last Monday ~ last Sunday)

if today is 2010/06/04

Time interval 2010/5/24 ~ 2010/5/30 (last Monday ~ last Sunday)

Time interval will always be last Monday ~ last Sunday

How am I going to set

Thank you for your help

CT

0 Karma

shirolu
Explorer

hi ~ all

Problems have been solved

Thank you for your help

CT

0 Karma

sideview
SplunkTrust
SplunkTrust

it's better to accept or upvote the answer rather than posting a second answer saying your issue has been solved.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee
earliest=-1w@w1 latest=@w0

http://www.splunk.com/base/Documentation/latest/User/ChangeTheTimeRangeOfYourSearch#Specify_relative...

Update: actually, you probably want to go from Monday till the end of Sunday, i.e., the beginning of this Monday, so actually:

earliest=-1w@w1 latest=@w1

is probably more like what you want.

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...