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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...