# Logstash is not able to consume logs from Kafka

**URL:** <https://discuss.elastic.co/t/logstash-is-not-able-to-consume-logs-from-kafka/85176>\
**Category:** Logstash\
**Created:** [May 10, 2017, 1:03am UTC](https://discuss.elastic.co/t/logstash-is-not-able-to-consume-logs-from-kafka/85176 "2017-05-10T01:03:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_06](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@John\_06](https://discuss.elastic.co/u/John_06)\
**Post date:** [May 10, 2017, 1:03am UTC](https://discuss.elastic.co/t/logstash-is-not-able-to-consume-logs-from-kafka/85176/1 "2017-05-10T01:03:49Z")

</div>

I am trying to consume logs from Kafka with Logstash and forward them to ES.

I can see Kafka receives logs from Filebeat but Logstash is not able to consume them, though there are no any errors neither in Kafka nor in Logstash logs.

Can anyone explain what is wrong please?

These are config files:  
filebeat.yml:

```
filebeat.prospectors:
- input_type: log
  paths:
    - /var/log/sample.log
registry_file: /var/lib/filebeat/registry

output.kafka:
  hosts: ["broker_server:9092"]
  topic: 'logstash'

```

logstash.conf:

```
input {
  kafka {
    bootstrap_servers => "broker_server:9092"
    topics => ["logstash"]
    codec => "json"
  }
}

filter {
}

output {
  elasticsearch {
    hosts => "elasticsearch:9200"
  }
}
```

---

<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:** [June 7, 2017, 1:19am UTC](https://discuss.elastic.co/t/logstash-is-not-able-to-consume-logs-from-kafka/85176/2 "2017-06-07T01:19:14Z")

</div>

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