[Solved] Logstash-input-rabbitmq keeps redelivering msg

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}"
  }
}

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.