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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...