Skip to content
share

Send data to ZeroMQ

Logagent Plugin: ZeroMQ

Output plugin for @sematext/logagent. The plugin acts as message consumer using ZeroMQ.

Output plugins support three types of messaging patterns

  • Publish-subscripe
  • Request-response
  • fire-and-forget some times called pipeline

Installation

Install @sematext/logagent and logagent-output-zeromq npm package:

npm i -g @sematext/logagent 
npm i -g logagent-output-zeromq

Configuration

# Global options
options:
  includeOriginalLine: false

input:
  stdin: true

output:
  zeromq: 
    module: output-zeromq
    host: 127.0.0.1
    port_zmq: 3000
    # for Publish-subscribe = 0  Request-response = 1  Publish-subscribe= 2
    pattern: 1
    topic: topic-example

Start logagent

logagent --config logagent-zeromq-output.yml