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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...