measure
Replaces the input with metrics describing the input.
Synopsis
measure [--real-time] [--cumulative]
Description
The measure
operator yields metrics for each received batch of events or bytes
using the following schema, respectively:
--real-time
Emit metrics immediately with every batch, rather than buffering until the
upstream operator stalls, i.e., is idle or waiting for further input.
The --real-time
option is useful when inspect should emit data without
latency.
--cumulative
Emit running totals for the events
and bytes
fields rather than per-batch
statistics.
Examples
Get the number of bytes read incrementally for a file:
Get the number of events read incrementally from a file:
Get the total number of events in a file, grouped by schema: