Subscribes to events from a channel with a topic.
subscribe [topic:string...]Description
Section titled “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.
During shutdown, subscribe will wait for publish to drain all data before
shutting down itself. This prevents data loss, as long as pub/sub do not
form cycles and publish does not use dynamic topic names.
topic: string... (optional)
Section titled “topic: string... (optional)”Optional channel names to subscribe to. If unspecified, the operator
subscribes to the topic main.
Examples
Section titled “Examples”Subscribe to the events under a topic
Section titled “Subscribe to the events under a topic”subscribe "zeek-conn"Subscribe to the multiple topics
Section titled “Subscribe to the multiple topics”subscribe "alerts", "notices", "critical"