Skip to main content
Version: Next

subscribe

Subscribes to events from a channel with a topic. The dual to publish.

Synopsis

subscribe [<topic>]

Description

The subscribe operator subscribes to events from a channel with the specified topic. Multiple subscribe operators with the same topic receive the same events.

Subscribers propagate back pressure to publishers. If a subscribing pipeline fails to keep up, all publishers will slow down as well to a matching speed to avoid data loss. This mechanism is disabled for pipelines that are not visible on the overview page on app.tenzir.com, which drop data rather than slow down their publishers.

<topic>

An optional topic identifying the channel events are published under.

Defaults to main.

Examples

Subscribe to the events under the topic zeek-conn:

subscribe zeek-conn