For my Dashboard I ping a Source and want to see to Text-States: UP or DOWN.
My search statement looks similar like this:
index="main" source="ping" dest="mydomain.com" | stats latest(packet_loss>=0)
A Result >=0 should output DOWN
A Result 0 should output UP
Any Ideas how to archive this?
Thank you!
Hi
Try this
[updated]:
index="main" source="ping" dest="mydomain.com"|stats latest(packet_loss) as result |eval result = if(result>0,"DOWN","UP")
Hi
I had updated the query above, try it. If it works please accept the answer.
Awesome! Thank you! Works like a charm!
Hi
Try this
[updated]:
index="main" source="ping" dest="mydomain.com"|stats latest(packet_loss) as result |eval result = if(result>0,"DOWN","UP")