logstash/logstash — pull request #150 by knuckolls (2012-05-25 16:27:10+00:00)
Title: added amqp attributes config for rabbitmq mirrored queues

Second cut of this pull request. Copy pasting relevant stuff from the previous one.
https://github.com/logstash/logstash/pull/90

---

RabbitMQ mirrored queues use the x-ha-policy argument upon queue creation and client connection. In order to pull from a mirrored queue I had to expose the arguments hash from the bunny gem to the logstash config.

This is an example of how it's used. It uses the array format in lieu of a config parser for hashes.

The arguments array is in the format [ "key1", "value1", "key2", "value2", ... ]

input {
amqp {
# ship logs to the 'rawlogs' fanout queue.
type => "all"
host => "myhost"
exchange => "rawlogs"
name => "rawlogs"
durable => true exclusive => false
auto_delete => false
arguments => [ "x-ha-policy", "all" ]
}
}