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
| Function | Default Argument | Availability | Description |
|---|---|---|---|
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. |