Is there a way to do avg(latest(@timestamp) - earliest(@timestamp)) or any alternatives to this query?
Asked
Active
Viewed 113 times
1

Axel Blaze
- 11
- 1
-
what is earliest is the oldest log? – EugenSunic Oct 26 '22 at 13:54
-
1Yes it returns the timestamp of the oldest log event. The whole command using is stats avg(latest(@timestamp) - earliest(@timestamp))/1000 by bin(*) – Axel Blaze Oct 27 '22 at 14:28