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 the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...