# Logstash consumes same messages from Kafka

**URL:** <https://discuss.elastic.co/t/logstash-consumes-same-messages-from-kafka/92904>\
**Category:** Logstash\
**Created:** [July 13, 2017, 1:49am UTC](https://discuss.elastic.co/t/logstash-consumes-same-messages-from-kafka/92904 "2017-07-13T01:49:12Z")\
**Posts on this page:** 3\
**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:** [July 13, 2017, 1:49am UTC](https://discuss.elastic.co/t/logstash-consumes-same-messages-from-kafka/92904/1 "2017-07-13T01:49:12Z")

</div>

I have a problem when Logstash consumes data from Kafka - it consumes the same data over and over again.

I have sent several hundred messages to Kafka but Logstash has been consuming them for about 3 hours and the total messages it consumed so far is 300k.

Configuration settings are quite simple:

```
input {
  kafka {
    bootstrap_servers => "..."
    topics => ["logstash"]
    codec => "json"
  }

```

What could be a reason of such behavior?

---

<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:** [July 15, 2017, 6:26am UTC](https://discuss.elastic.co/t/logstash-consumes-same-messages-from-kafka/92904/2 "2017-07-15T06:26:01Z")

</div>

Did anybody have the same problem?

---

<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:** [August 12, 2017, 6:26am UTC](https://discuss.elastic.co/t/logstash-consumes-same-messages-from-kafka/92904/3 "2017-08-12T06:26:16Z")

</div>

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