# \[Solved\] Logstash-input-rabbitmq keeps redelivering msg

**URL:** <https://discuss.elastic.co/t/solved-logstash-input-rabbitmq-keeps-redelivering-msg/64253>\
**Category:** Logstash\
**Created:** [October 28, 2016, 6:53am UTC](https://discuss.elastic.co/t/solved-logstash-input-rabbitmq-keeps-redelivering-msg/64253 "2016-10-28T06:53:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stachdude](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stachdude/32/12491_2.png) [@stachdude](https://discuss.elastic.co/u/stachdude)\
**Post date:** [October 28, 2016, 6:53am UTC](https://discuss.elastic.co/t/solved-logstash-input-rabbitmq-keeps-redelivering-msg/64253/1 "2016-10-28T06:53:54Z")

</div>

Hi,

I'm having this strange issue, where every msg I consume gets redelivered to input queue.

Logstah versions I've tried = 2.3, 2.4, 5 GA

I've tried every possible setting, and the only difference form every doc I can see is that I use ssl, but taking a glance at the logstash-input-rabbitmq I can't find anything wrong with the code which might explain this behavior.

Here's the config I use..

```
input {
  rabbitmq {
    host => "host"
    ssl => true
    ssl_certificate_path => "/etc/logstash/conf.d/cert.p12"
    ssl_certificate_password => "${SSL_CRT_PASS}"
    vhost => "/"
    user => "${RB_IN_USER:guest}"
    password => "${RB_IN_PASS:guest}"
    queue => "${RB_IN_QUEUE}"
    type => "x_logs"
    prefetch_count => 1
    passive => true
    codec => plain
  }
}
output {
  rabbitmq {
    host => "host"
    ssl => true
    ssl_certificate_path => "/etc/logstash/conf.d/cert.p12"
    ssl_certificate_password => "${SSL_CRT_PASS}"
    vhost => "/"
    exchange => "receiver"
    exchange_type => "topic"
    user => "${RB_OUT_USER}"
    password => "${RB_OUT_PASS}"
    key => "es.${ES_IDX:x_logs}"
  }
}
```

---

<div class="post-metadata">

**Author:** ![stachdude](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stachdude/32/12491_2.png) [@stachdude](https://discuss.elastic.co/u/stachdude)\
**Post date:** [October 28, 2016, 8:58am UTC](https://discuss.elastic.co/t/solved-logstash-input-rabbitmq-keeps-redelivering-msg/64253/2 "2016-10-28T08:58:07Z")

</div>

Nvm, found out what the problem is. For unknown reason atm, every msg in the queue has the redelivered flag on. So its not logstash problem but something with msg producer.

---

<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:** [July 6, 2017, 4:32am UTC](https://discuss.elastic.co/t/solved-logstash-input-rabbitmq-keeps-redelivering-msg/64253/3 "2017-07-06T04:32:13Z")

</div>

Closed on July 6, 2017, 4:32am UTC


