Retrieves events from a Tenzir node.
export [live=bool, retro=bool, internal=bool, parallel=int]Description
Section titled “Description”The export operator retrieves events from a Tenzir node.
This operator is the dual to import.
live = bool (optional)
Section titled “live = bool (optional)”Work on all events that are imported with import operators in real-time
instead of on events persisted at a Tenzir node.
Note that live exports may drop events if the following pipeline fails to keep
up. To connect pipelines with back pressure, use the publish and
subscribe operators.
retro = bool (optional)
Section titled “retro = bool (optional)”Export persistent events at a Tenzir node. Unless live=true is given, this is
implied.
Use retro=true, live=true to export past events, and live events afterwards.
internal = bool (optional)
Section titled “internal = bool (optional)”Export internal events, such as metrics or diagnostics, instead. By default,
export only returns events that were previously imported with import. In
contrast, export internal=true exports internal events such as operator
metrics.
parallel = int (optional)
Section titled “parallel = int (optional)”The parallel level controls how many worker threads the operator uses at most for querying historical events.
Defaults to 3.
Examples
Section titled “Examples”Export all stored events as JSON
Section titled “Export all stored events as JSON”exportwrite_jsonGet a subset of matching events
Section titled “Get a subset of matching events”exportwhere src_ip == 1.2.3.4head 20