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
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...