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!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...