# Logstash conf exception handling

**URL:** <https://discuss.elastic.co/t/logstash-conf-exception-handling/82045>\
**Category:** Logstash\
**Created:** [April 11, 2017, 8:07pm UTC](https://discuss.elastic.co/t/logstash-conf-exception-handling/82045 "2017-04-11T20:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![piyush](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@piyush](https://discuss.elastic.co/u/piyush)\
**Post date:** [April 11, 2017, 8:07pm UTC](https://discuss.elastic.co/t/logstash-conf-exception-handling/82045/1 "2017-04-11T20:07:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 9, 2017, 8:20pm UTC](https://discuss.elastic.co/t/logstash-conf-exception-handling/82045/2 "2017-05-09T20:20:35Z")

</div>

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