last - Capture events from a specific interval for this query
The last
keyword specifies how far back in time a query should go, defined by a given interval
.
NOTE: The value of the given interval
MUST be non-negative.
Syntax
Example - Basic usage
The last
keyword is simple to employ for both logs
and spans
.
Given the timerange in the Coralogix interface is Last 1 Hour
, and we run the following query:
Then the result of this query will be the spans
from the last 1 day. There is no relationship between the interval
in the last
keyword and the timerange in the Coralogix UI.
Try it yourself
Open up your Coralogix explore screen and paste in the following query:
Theme
Light