# Kafka input for logstash，process restart how to set offset

**URL:** <https://discuss.elastic.co/t/kafka-input-for-logstash-process-restart-how-to-set-offset/94048>\
**Category:** Logstash\
**Created:** [July 21, 2017, 3:14am UTC](https://discuss.elastic.co/t/kafka-input-for-logstash-process-restart-how-to-set-offset/94048 "2017-07-21T03:14:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kai\_fu](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@kai\_fu](https://discuss.elastic.co/u/kai_fu)\
**Post date:** [July 21, 2017, 3:14am UTC](https://discuss.elastic.co/t/kafka-input-for-logstash-process-restart-how-to-set-offset/94048/1 "2017-07-21T03:14:28Z")

</div>

If the logstash restarts, how to ensure that the read kafka offset begins the last one befor reboot, 'auto\_offset\_reset' just supports earliest / lastest, which may cause the data to read missing or duplicate, the old version setting 'zk\_connect', and should be able to keep the offset on zookeeper , The new version 'bootstrap\_servers' , did not consider offset maintenance? -- From google translation

---

<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 18, 2017, 3:14am UTC](https://discuss.elastic.co/t/kafka-input-for-logstash-process-restart-how-to-set-offset/94048/2 "2017-08-18T03:14:33Z")

</div>

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