# Duplicates logs are available on running the query for same time

**URL:** <https://discuss.elastic.co/t/duplicates-logs-are-available-on-running-the-query-for-same-time/346586>\
**Category:** Logstash\
**Created:** [November 7, 2023, 5:32am UTC](https://discuss.elastic.co/t/duplicates-logs-are-available-on-running-the-query-for-same-time/346586 "2023-11-07T05:32:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayushi\_bhardwaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayushi_bhardwaj/32/109915_2.png) [@Ayushi\_bhardwaj](https://discuss.elastic.co/u/Ayushi_bhardwaj)\
**Post date:** [November 7, 2023, 5:32am UTC](https://discuss.elastic.co/t/duplicates-logs-are-available-on-running-the-query-for-same-time/346586/1 "2023-11-07T05:32:03Z")

</div>

Duplicates logs are available on running the query for same time (now-1m)  
We are running the query for last now-1m based upon our use case however we seeing duplicates getting generated in Output. Please help with the problem.  
Refer here the query

```auto
input {
    elasticsearch{
    hosts => ["https://elasticdomain"]
    index => "test*"
    query => '{ "sort" : [{"@timestamp" : {"order" : "asc"}}], "query": { "range": { "@timestamp": {"gte": "now-1m"} }}}'
    size => 1000
    docinfo => true
    schedule => "*/1 * * * *"
    user => "admin"
    password => "admin"
   }
}

```

---

<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:** [November 7, 2023, 5:32am UTC](https://discuss.elastic.co/t/duplicates-logs-are-available-on-running-the-query-for-same-time/346586/2 "2023-11-07T05:32:03Z")

</div>

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

---

<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:** [December 5, 2023, 5:32am UTC](https://discuss.elastic.co/t/duplicates-logs-are-available-on-running-the-query-for-same-time/346586/3 "2023-12-05T05:32:45Z")

</div>

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