Logstash conf exception handling

Hi Team,
I am trying to read messages from 2 different rabbitmq servers and PFB my configuration sample. But, if any error on "host-a" logstash is not reading messages from "host-b" either.

Can we do exception handling in input section? continue/ignore if error on "host-a" and read from "host-b" ? what could be the alternate approach? I don't want to maintain another logstash server.

I tried host => "host-a,host-b" but in that case i can't maintain "type" which is important one.

it's logstash-2.3.4

input{
rabbitmq {
host => "host-a"
port => 5671
queue => "my-queue"
user => "guest"
password => "hithere"
durable => true
ssl => true
exchange => "my-exchange"
type => "msg-a"
}
rabbitmq {
host => "host-b"
port => 5671
queue => "my-queue"
user => "guest"
password => "hithere"
durable => true
ssl => true
exchange => "my-exchange"
type => "msg-b"
}

}
output {
stdout { codec => rubydebug }
}

Thanks & Regards

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.