Time Series Query Functions

LogScale's time series functions group events into time buckets and calculate values over time, such as rates, trends, and moving aggregates.

Table: Time Series Query Functions

FunctionDefault ArgumentAvailabilityDescription
bucket([buckets], [field], [function], [limit], [minSpan], [span], [timezone], [unit])span  Extends the groupBy() function for grouping by time.
counterAsRate([as], field)field  Calculates the rate for a counter field.
slidingTimeWindow([current], function, span, [timestampfield])function  Applies an aggregation to a moving time-based window of events in a sequence. The window contains the preceding events, including the current one by default.
timeChart([buckets], [function], [limit], [minSpan], [series], [span], [timezone], [unit])series  Used to draw a linechart where the x-axis is time.
window([buckets], [function], [span])function  Computes aggregate functions over a sliding window of preceding buckets.