Splunk Search

Setting time frame in dashboard search

mab17
New Member

I have saved a search in a dashboard and have it set to a specific data and time range. However, because I want the search to update the data pulled in every time I go onto the dashboard the way the time is set up currently will be an issue. I am trying to make it show from 18:00 the previous day to 06:00 of the current day. I want it to run based on the day that I am running the search without having to change the time frame everyday. Can anybody give me insight on how to do this?

Tags (3)
0 Karma

grijhwani
Motivator

alt text

"Custom Time Range" >> "Advanced search language"

Earliest: -1d@d+6h

Latest: -1d@d+18h

In search terms that is "one day ago, snap to day, plus **N* hours*".

0 Karma

grijhwani
Motivator

You're welcome. You could improve upon the thanks by accepting the answer.

0 Karma

mab17
New Member

Thank you so much!

0 Karma

grijhwani
Motivator

The above illustrates how to set the range for an interactive search (because it also displays the resultant calculated times), but the search period syntax is identical for a saved search administered through the manager.

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 ...