# Logstash RabbitMQ input with SAC

**URL:** <https://discuss.elastic.co/t/logstash-rabbitmq-input-with-sac/213866>\
**Category:** Logstash\
**Created:** [January 6, 2020, 9:49am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-with-sac/213866 "2020-01-06T09:49:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cenemoi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cenemoi/32/60314_2.png) [@cenemoi](https://discuss.elastic.co/u/cenemoi)\
**Post date:** [January 6, 2020, 9:49am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-with-sac/213866/1 "2020-01-06T09:49:25Z")

</div>

Hello,

I need to add SAC on a queue.

My conf :

input {  
rabbitmq {  
...  
arguments =\> {"x-single-active-consumer" =\> true}  
#passive =\> true (SAC working by another way)  
}  
}

The warn :

[WARN] 2020-01-06 09:44:50.092 \<rabbitmq] rabbitmq - Error while setting up connection for rabbitmq input! Will retry. {:message=\>"#method\<channel.close\>(reply-code=406, reply-text=PRECONDITION\_FAILED - invalid arg 'x-single-active-consumer' for queue 'xxx' in vhost 'xxx': {unacceptable\_type,longstr}, class-id=50, method-id=10)", :class=\>"MarchHare::ChannelAlreadyClosed", :location=\>"/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/march\_hare-4.1.1-java/lib/march\_hare/exceptions.rb:121:in `convert\_and\_reraise'"}

And the queue is not created.

Input version : logstash-input-rabbitmq (6.0.4)

Any advice ?

Thx !

---

<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:** [February 3, 2020, 9:49am UTC](https://discuss.elastic.co/t/logstash-rabbitmq-input-with-sac/213866/2 "2020-02-03T09:49:33Z")

</div>

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