# We are getting two different offset values for same message

**URL:** https://discuss.elastic.co/t/we-are-getting-two-different-offset-values-for-same-message/348779
**Category:** Logstash
**Created:** [December 7, 2023, 5:44am UTC](https://discuss.elastic.co/t/we-are-getting-two-different-offset-values-for-same-message/348779 "2023-12-07T05:44:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![prashant1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@prashant1](https://discuss.elastic.co/u/prashant1)
#### Post date: [December 7, 2023, 5:44am UTC](https://discuss.elastic.co/t/we-are-getting-two-different-offset-values-for-same-message/348779/1 "2023-12-07T05:44:39Z")

</div>

Hi,  
We have two logstash pods which are reading the data from elasticsearch from one index for last 24 hr data and then sending data to Kafka server.  
We can see two different offset are created for similar log message.  
Is there any way to avoid the duplication from kafka?

Could someone please help us in resolving the issue?

---

<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: [January 4, 2024, 5:45am UTC](https://discuss.elastic.co/t/we-are-getting-two-different-offset-values-for-same-message/348779/2 "2024-01-04T05:45:11Z")

</div>

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