Other Usage

How to change first day of week in Splunk?

indeed_2000
Motivator

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,

Labels (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

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

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

span is used for commands like timechart. For your search, set the timerange using @w6 to refer to the most recent Saturday.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

What is your SPL?

0 Karma

indeed_2000
Motivator

I mean Something like this
Index=* | search errors* span=1w@w6
Is this correct?

0 Karma

indeed_2000
Motivator

How can use it in my SPL?

0 Karma

Farheen
Explorer

You can use something like below

Index=*  earliest=-1w@w6 latest=now()
| search errors* 

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...