Splunk Search

How to color a panel if the result is not equal a specific datetime ?

mah
Builder

Hi, 

My issue is : 

I have a panel like that :

mah_0-1597133068884.png

what I want is to change dynamically the color (red for example) when this is not equal to the curent time. 

I have my request like this : 

index=abc
| stats count by Timestamp
| eval epochtime=strptime(Timestamp, "%Y-%m-%dT%H:%M:%S.%N")| eval desired_time=strftime(epochtime, "%d/%m/%Y %H:%M:%S")
| rename desired_time as timestamp
| fields timestamp
| sort timestamp desc
| eval now = now()
| fieldformat now = strftime(now, "%d/%m/%Y %H:%M:%S")
| head 1
| where timestamp<now

The format option is not useful in this case. 

How can I do this ? 

Thanks !

 

Labels (1)
Tags (1)
0 Karma

mah
Builder

Can someone help me for this case please ?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...