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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...