I'm using RabbitMQ plugin of Logstash to pull from RabbitMQ and push to Elasticsearch using this pipeline:
input {
rabbitmq {
queue => "Elasticsearch_Queue"
host => "rabbitmq"
exchange => "my_event_bus"
key => "SomeIntegrationEvent" # How to define multiple keys?
}
}
output {
elasticsearch {
hosts => [ "elasticsearch:9200" ]
}
stdout { codec => rubydebug }
}
It works fine and creates a queue named Elasticsearch_Queue
and binds to my_event_bus
exchange using routing_key SomeIntegrationEvent
.
I need to subscribe to multiple events but there is no clear solution on the plugin docs.