Splunk Search

Only show every 7th day in timechart

akhan8928
New Member

Currently I have the following -

index="mysql_uc_orders" earliest=-7d@d latest=now | bucket span=1m _time | timechart count span=30m | timewrap d

This works fine as it shows the latest day and the 7th day but it also shows 1day, 2days, 3days etc.

I'd like to only show the latest day and the 7 days before (I.e. week over week on a specific day).

Does anyone know what filter I need to use?

Tags (1)
0 Karma

lguinn2
Legend

With timewrap, I think you want timewrap w not d.

You could also do this manually. Here is another way

index="mysql_uc_orders" earliest=-7d@d latest=now 
| bucket span=1m _time 
| timechart count span=30m
| eval today=strftime(now(),"%A")
| eval dayOfWeek = strftime(_time,"%A")
| where dayOfWeek == today
0 Karma
Get Updates on the Splunk Community!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...