# RabbitMQ - Can't Bind To Exchange - Not Found

**URL:** <https://community.graylog.org/t/rabbitmq-cant-bind-to-exchange-not-found/6049>\
**Category:** Graylog Central (peer support)\
**Created:** [July 20, 2018, 2:06pm UTC](https://community.graylog.org/t/rabbitmq-cant-bind-to-exchange-not-found/6049 "2018-07-20T14:06:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![displaced](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@displaced](https://community.graylog.org/u/displaced)\
**Post date:** [July 20, 2018, 2:06pm UTC](https://community.graylog.org/t/rabbitmq-cant-bind-to-exchange-not-found/6049/1 "2018-07-20T14:06:00Z")

</div>

Hi,

I’ve just come back to set up Graylog after having played with it a while back. I had successfully got it pulling messages via a GELF-over-AMQP input from RabbitMQ.

I’m now trying to set it up again, but for some reason Graylog’s getting an error when attempting to start the input:

```
channel error; protocol method: #method<channel.close>(reply-code=404, reply-text=NOT_FOUND - no exchange 'graylog.messages' in vhost '/', class-id=50, method-id=20)

```

The thing is, the exchange **graylog.messages** does indeed exist. It’s set as a durable fanout exchange and _not_ to auto-delete.

It’s clearly connecting to Rabbit OK since it’s able to display the error. I’ve tried with Rabbit 3.6 and 3.7 as well as the past couple of revisions of Graylog.

I’m at a bit of a loss as to what’s going on. I’ve quadruple-checked the configuration, but am still stuck.

Any help greatly appreciated!

**[EDIT]** If I turn off _Bind to Exchange_ the input starts successfully. However, I need it to bind, so the problem remains. Also, this is a ‘clean’ install of both Rabbit and Graylog. All work is done with Rabbit’s default vhost and default credentials.

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [July 20, 2018, 2:28pm UTC](https://community.graylog.org/t/rabbitmq-cant-bind-to-exchange-not-found/6049/2 "2018-07-20T14:28:42Z")

</div>

When I use Logstash to push messages into Graylog (via AMQP) the configuration looks like:

```auto
output {
        rabbitmq {
                exchange => "log-message"
                exchange_type => "fanout"
                key => "log-message"
                host => "AMQP_HOST_NAME"
                vhost => "graylog"
                ssl => true
                workers => 1
                durable => true
                persistent => true
                port => 5671
                user => "USERNAME"
                password => "PASSWORD"
                }
        }

```

The above is basically what is written in the guide: [https://github.com/Graylog2/graylog-guide-syslog-amqp](https://github.com/Graylog2/graylog-guide-syslog-amqp)

The connection from Graylog is only successfully possible once the first worker pushes data into the exchange. The reason why I had forgotten, so I’m not able to explain - but AFAIK that has something todo with the way AMQP is working.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [August 3, 2018, 2:28pm UTC](https://community.graylog.org/t/rabbitmq-cant-bind-to-exchange-not-found/6049/3 "2018-08-03T14:28:46Z")

</div>

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