Dashboards & Visualizations

How to define a custom range picker for day shifts (6AM to 6PM) and night shifts (6PM to 6AM)?

rapmancz
Explorer

Hello,

I am using Splunk in a 24/7 factory production floor.

I need to define a custom time range picker for all day shifts (6AM to 6PM) and night shifts (6PM to 6AM).

I am able to define it for one shift like @d-18h (yesterday 6AM) to @d-6h (yesterday 6PM). But how to define for example this week all days 6AM to 6PM?

0 Karma

sundareshr
Legend

You could have 2 options. One a dropdown for day vs night and the other for timerange (Last 7 days etc). Then in your search, you could do like this

index=xyz earliest=$timerange.earliest$ latest=$timerange.latest$ | eval hod=strftime(_time, "%H") | eval shift=if(hod>=6 AND hod<=18, "day", "night") | where shift=$shiftselection$ | ...
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, ...