# Rabbotmq to Elasticsearch

**URL:** <https://discuss.elastic.co/t/rabbotmq-to-elasticsearch/102339>\
**Category:** Logstash\
**Created:** [September 30, 2017, 10:30am UTC](https://discuss.elastic.co/t/rabbotmq-to-elasticsearch/102339 "2017-09-30T10:30:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericd](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@ericd](https://discuss.elastic.co/u/ericd)\
**Post date:** [September 30, 2017, 10:30am UTC](https://discuss.elastic.co/t/rabbotmq-to-elasticsearch/102339/1 "2017-09-30T10:30:29Z")

</div>

I have a problem with transporting filtered logs to Elasticsearch.

This is an overview:  
syslog device -\> syslog-ng -\> rabbitmq -\> logstash input (no filters) -\> logstash elasticsearch output

Elastic stack is v5.6  
In rabbitmq everything seems fine. Inputs ok and logstash getting messages from output queue .  
ES client, logstash and rabbimq are on the same virtual server.

```
input {
  rabbitmq {
  host => '10.10.10.11'
  port => 5672
  vhost => 'logstash'
  user => 'output_user'
  password => 'pass'
  durable => true
  exchange => 'syslog_exchange'
  key => 'key1'
  queue => 'out_logstash_queue'
  type => "rmq"
  subscription_retry_interval_seconds => '5'
  }
}

output {
  if [type] == "rmq" { #tried and without this IF
     elasticsearch {
     hosts => ["10.10.10.11:9200"] #tried and with http
     index => "rmq-%{+YYYY.MM.dd}"
    }
  }
}

```

This output is working for every other input (i removed all other to test just this one).  
What i am missing?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 1, 2017, 9:58pm UTC](https://discuss.elastic.co/t/rabbotmq-to-elasticsearch/102339/2 "2017-10-01T21:58:27Z")

</div>

What happens if you have a stdout in the output, does it show events?

---

<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:** [October 29, 2017, 9:58pm UTC](https://discuss.elastic.co/t/rabbotmq-to-elasticsearch/102339/3 "2017-10-29T21:58:45Z")

</div>

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