How can I change first day of week in splunk
For e.g.I want to create report that show this week errors but first day of week is Saturday not Sunday!
Any recommendation?
Thanks,
To search using week boundaries starting on Saturday use @w6
instead of @w
.
To chart using weekly spans starting on Saturday use span=1w@w6
instead of span=1w
span
is used for commands like timechart. For your search, set the timerange using @w6
to refer to the most recent Saturday.
What is your SPL?
I mean Something like this
Index=* | search errors* span=1w@w6
Is this correct?
How can use it in my SPL?
You can use something like below
Index=* earliest=-1w@w6 latest=now()
| search errors*