rabbitmq

edit
  • Version: 4.0.4
  • Released on: 2016-08-01
  • Changelog
  • Compatible: 5.1.1.1, 5.0.0, 2.4.1, 2.4.0, 2.3.4

encoding: UTF-8 Push events to a RabbitMQ exchange. Requires RabbitMQ 2.x or later version (3.x is recommended).

Relevant links:

 

Synopsis

edit

This plugin supports the following configuration options:

Required configuration options:

rabbitmq {
    exchange => ...
    exchange_type => ...
    host => ...
}

Available configuration options:

Setting Input type Required Default value

arguments

array

No

{}

automatic_recovery

boolean

No

true

codec

codec

No

"plain"

connect_retry_interval

number

No

1

connection_timeout

number

No

durable

boolean

No

true

enable_metric

boolean

No

true

exchange

string

Yes

exchange_type

string, one of ["fanout", "direct", "topic", "x-consistent-hash", "x-modulus-hash"]

Yes

heartbeat

number

No

host

string

Yes

id

string

No

key

string

No

"logstash"

passive

boolean

No

false

password

password

No

"guest"

persistent

boolean

No

true

port

number

No

5672

ssl

boolean

No

ssl_certificate_password

string

No

ssl_certificate_path

a valid filesystem path

No

ssl_version

string

No

"TLSv1.2"

user

string

No

"guest"

vhost

string

No

"/"

workers

<<,>>

No

1

Details

edit

 

arguments

edit
  • Value type is array
  • Default value is {}

Extra queue arguments as an array. To make a RabbitMQ queue mirrored, use: {"x-ha-policy" => "all"}

automatic_recovery

edit
  • Value type is boolean
  • Default value is true

Set this to automatically recover from a broken connection. You almost certainly don’t want to override this!!!

codec

edit
  • Value type is codec
  • Default value is "plain"

The codec used for output data. Output codecs are a convenient method for encoding your data before it leaves the output, without needing a separate filter in your Logstash pipeline.

connect_retry_interval

edit
  • Value type is number
  • Default value is 1

Time in seconds to wait before retrying a connection

connection_timeout

edit
  • Value type is number
  • There is no default value for this setting.

The default connection timeout in milliseconds. If not specified the timeout is infinite.

debug (DEPRECATED)

edit
  • DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
  • Value type is boolean
  • Default value is false

Enable or disable logging

durable

edit
  • Value type is boolean
  • Default value is true

Is this exchange durable? (aka; Should it survive a broker restart?)

enable_metric

edit
  • Value type is boolean
  • Default value is true

Disable or enable metric logging for this specific plugin instance by default we record all the metrics we can, but you can disable metrics collection for a specific plugin.

exchange

edit
  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

The name of the exchange

exchange_type

edit
  • This is a required setting.
  • Value can be any of: fanout, direct, topic, x-consistent-hash, x-modulus-hash
  • There is no default value for this setting.

The exchange type (fanout, topic, direct)

heartbeat

edit
  • Value type is number
  • There is no default value for this setting.

Heartbeat delay in seconds. If unspecified no heartbeats will be sent

host

edit
  • This is a required setting.
  • Value type is string
  • There is no default value for this setting.

RabbitMQ server address(es) host can either be a single host, or a list of hosts i.e. host ⇒ "localhost" or host ⇒ ["host01", "host02]

if multiple hosts are provided on the initial connection and any subsequent recovery attempts of the hosts is chosen at random and connected to. Note that only one host connection is active at a time.

  • Value type is string
  • There is no default value for this setting.

Add a unique ID to the plugin instance, this ID is used for tracking information for a specific configuration of the plugin.

output {
 stdout {
   id => "ABC"
 }
}

If you don’t explicitely set this variable Logstash will generate a unique name.

key

edit
  • Value type is string
  • Default value is "logstash"

The default codec for this plugin is JSON. You can override this to suit your particular needs however. Key to route to by default. Defaults to logstash

  • Routing keys are ignored on fanout exchanges.

passive

edit
  • Value type is boolean
  • Default value is false

Passive queue creation? Useful for checking queue existance without modifying server state

password

edit
  • Value type is password
  • Default value is "guest"

RabbitMQ password

persistent

edit
  • Value type is boolean
  • Default value is true

Should RabbitMQ persist messages to disk?

port

edit
  • Value type is number
  • Default value is 5672

RabbitMQ port to connect on

ssl

edit
  • Value type is boolean
  • There is no default value for this setting.

Enable or disable SSL. Note that by default remote certificate verification is off. Specify ssl_certificate_path and ssl_certificate_password if you need certificate verification

ssl_certificate_password

edit
  • Value type is string
  • There is no default value for this setting.

Password for the encrypted PKCS12 (.p12) certificate file specified in ssl_certificate_path

ssl_certificate_path

edit
  • Value type is path
  • There is no default value for this setting.

Path to an SSL certificate in PKCS12 (.p12) format used for verifying the remote host

ssl_version

edit
  • Value type is string
  • Default value is "TLSv1.2"

Version of the SSL protocol to use.

tls_certificate_password (DEPRECATED)

edit
  • DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
  • Value type is string
  • There is no default value for this setting.

TLS certificate password

tls_certificate_path (DEPRECATED)

edit
  • DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
  • Value type is path
  • There is no default value for this setting.

TLS certifcate path

user

edit
  • Value type is string
  • Default value is "guest"

RabbitMQ username

vhost

edit
  • Value type is string
  • Default value is "/"

The vhost (virtual host) to use. If you don’t know what this is, leave the default. With the exception of the default vhost ("/"), names of vhosts should not begin with a forward slash.

workers

edit
  • Value type is string
  • Default value is 1

TODO remove this in Logstash 6.0 when we no longer support the :legacy type This is hacky, but it can only be herne