# How to reset / revert Kafka offset of a consumer group used by Logstash?

**URL:** <https://discuss.elastic.co/t/how-to-reset-revert-kafka-offset-of-a-consumer-group-used-by-logstash/71467>\
**Category:** Logstash\
**Created:** [January 13, 2017, 5:27am UTC](https://discuss.elastic.co/t/how-to-reset-revert-kafka-offset-of-a-consumer-group-used-by-logstash/71467 "2017-01-13T05:27:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [January 13, 2017, 5:27am UTC](https://discuss.elastic.co/t/how-to-reset-revert-kafka-offset-of-a-consumer-group-used-by-logstash/71467/1 "2017-01-13T05:27:23Z")

</div>

Hi,

I am using Logstash GA 5.0.0 to read data from Kafka. For testing purposes, I need to re-run Logstash several times, and my Kafka topic has limited number of test messages. Everything works fine, but the problem is that I need to push new messages every time when I start Logstash, to work with it since the offset updates every time. Is there any way to reset this offset, so that every time I start Logstash, it start reading from the beginning of the topic?

Thank you.

---

<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 10, 2017, 5:27am UTC](https://discuss.elastic.co/t/how-to-reset-revert-kafka-offset-of-a-consumer-group-used-by-logstash/71467/2 "2017-02-10T05:27:27Z")

</div>

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