logstash
logstash

zeromq

Status: experimental

Write events to a 0MQ PUB socket.

You need to have the 0mq 2.1.x library installed to be able to use this input plugin.

The default settings will create a publisher connecting to a subscriber bound to tcp://127.0.0.1:2120

Synopsis

This is what it might look like in your config file:
output {
  zeromq {
    address => ... # string (optional), default: "tcp://127.0.0.1:2120"
    mode => ... # ["server", "client"] (optional), default: "server"
    queue => ... # string (optional), default: ""
    tags => ... # array (optional), default: []
    type => ... # string (optional), default: ""
  }
}

Details

address

  • Value type is string
  • Default value is "tcp://127.0.0.1:2120"

0mq socket address to connect or bind to

mode

  • Value can be any of: "server", "client"
  • Default value is "server"

Whether to bind ("server") or connect ("client") to the socket

queue

  • Value type is string
  • Default value is ""

0mq topic (Used with ZMQSUBSCRIBE, see http://api.zeromq.org/2-1:zmq-setsockopt for 'ZMQSUBSCRIBE: Establish message filter')

tags

  • Value type is array
  • Default value is []

Only handle events with all of these tags. Note that if you specify a type, the event must also match that type. Optional.

type

  • Value type is string
  • Default value is ""

The type to act on. If a type is given, then this output will only act on messages with the same type. See any input plugin's "type" attribute for more. Optional.


This is documentation from lib/logstash/outputs/zeromq.rb