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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...