ZeroMQ (im_zmq)
This module provides message transport over ZeroMQ, a scalable high-throughput messaging library.
The corresponding output module is om_zmq.
To examine the supported platforms, see the list of installation packages. |
Configuration
The im_zmq module accepts the following directives in addition to the common module directives. The Address, ConnectionType, Port, and SocketType directives are required.
Required directives
The following directives are required for the module to start.
This directive specifies the ZeroMQ socket address. |
|
This mandatory directive specifies the underlying transport protocol.
It may be one of the following: |
|
This directive specifies the ZeroMQ socket port. |
|
This mandatory directive defines the type of the socket to be used.
It may be one of the following: |
Optional directives
If this boolean directive is set to |
|
See the InputType directive in the list of common module directives. The default is |
|
This directive specifies the ZeroMQ socket interface. |
|
This directive can be used to set ZeroMQ socket options.
For example, |
Examples
This example configuration accepts ZeroMQ messages over TCP and writes them to a file.
<Input zmq>
Module im_zmq
SocketType PULL
ConnectionType TCP
Address 10.0.0.1
Port 1415
</Input>
<Output file>
Module om_file
File "/var/log/zmq-messages.log"
</Output>
<Route zmq_to_file>
Path zmq => file
</Route>