batch-exporter

A Batch Exporter listens to a stream and outputs all events to a file in a Sink. This happens with a regular interval.

The file follows the JSON Lines format, which is one full JSON document per line.

create

Create a new Batch Exporter for a Stream, identified by [stream-name].

Usage

strm create batch-exporter [stream-name] [flags].

Options

Option Description

stream-name

The name of the stream this Batch Exporter connects to.

Flags

Flag Alias Description

--export-keys

If defined, create a batch exporter for the Key Stream with this [stream-name].

--interval int

The interval in seconds at which batched events are sent to the sink. Default: 60.

--name

The batch exporter name. Default: [sink name]-[stream-name] if not export-keys, [sink name]-[stream-name]-keys if export-keys.

--path-prefix string

The path prefix to use when creating files in the Sink. The provided credentials in the Sink need permissions to write in this prefix.

--sink

The sink to output to. This flag is mandatory when there is more than one Sink.

See Global flags for all global flags.

delete

Delete a Batch Exporter by name.

Usage

strm delete batch-exporter [name] [flags].

Options

Option Description

name

The name of the Batch Exporter.

Flags

No specific flags. See Global flags.

get

Get a Batch Exporter by name.

Usage

strm get batch-exporter [name] [flags].

Options

Option Description

name

The name of the Batch Exporter.

Flags

No specific flags. See Global flags.

list

List Batch Exporters.

Usage

strm list batch-exporters [flags].

Options

No options

Flags

No specific flags. See Global flags.