Getting Started with Logstash
On-Demand Webinar
The ELK Stack in a DevOps Environment


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://


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



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

0mq socket address to connect or bind to


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

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


  • 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')


  • 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.


  • 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