Dashboards & Visualizations

How to define color for a timerange ?

Unkn0wn
New Member

I would like to set the color of the field to green if it is younger than 1 week. The Time Format is Like this ('2023-04-19 08:57:10'), yes the format is with the apostrophe.  First I tried at the UI just a Range color definition, but it doesn't work i think it's bcs of the apostrophe. Screenshot 2023-04-19 113004.png

Labels (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

In order to do calculations and numeric comparisons, you need to parse the string into epoch format using strptime()

0 Karma
Get Updates on the Splunk Community!

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...