Dashboards & Visualizations

Time Tokens: Is there a way to set up a time search for a dashboard that filters by date and between hours?

neillnetzeband
New Member

Is there a way to set up a time search for a dashboard where we can pick a date to filter and the filter applied would be that date between certain hours? We have logs that we want on a dashboard but only for the hours of 6 AM to 1 PM, because the data outside these hours isn't relevant to the dashboard. So, basically, we want to have the time search in the dashboard, where we click or input a date and the filter applies that date with the times between 6 and 1.

Can this be done?

Tags (3)
0 Karma

mayurr98
Super Champion

hey @neillnetzeband

Just add this in your base search to consider data only between 6 AM to 1 PM:

<base_search> date_hour>=6 date_hour<=13

You do not need a filter to do that. With this search even if you select today or say a particular day it will give you result only for this time period for that day.
let me know if this helps!

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...