Splunk Search

Splunk 6.4 how to achieve @w1 of splunk 7

viking1978
New Member

I am doing weekly statistics and in splunk 7, i can easily specify the first day of a week by @w1 so 1 means Monday.
While I found I am not able to do it in Splunk 6.4, it always uses Sunday as the first day of a week.

I am wondering if there is a way in Splunk 6 to do @w1?

Tags (1)
0 Karma

amitm05
Builder

I do not have 6.4 version to test this, But try adding this before your stats or timechart command -
| eval _time=relative_time(_time,"@w1") | timechart span=1w ....

OR try this -
https://answers.splunk.com/answers/562033/why-is-time-chart-with-span-of-1w-always-thursday.html

Please accept as answer if this would solve your case.

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...