# Elasticsearch Input on Logstash

**URL:** <https://discuss.elastic.co/t/elasticsearch-input-on-logstash/349609>\
**Category:** Logstash\
**Created:** [December 19, 2023, 3:04am UTC](https://discuss.elastic.co/t/elasticsearch-input-on-logstash/349609 "2023-12-19T03:04:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonadius](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leonadius/32/45740_2.png) [@Leonadius](https://discuss.elastic.co/u/Leonadius)\
**Post date:** [December 19, 2023, 3:04am UTC](https://discuss.elastic.co/t/elasticsearch-input-on-logstash/349609/1 "2023-12-19T03:04:23Z")

</div>

Dear Elastic Team,

I have a case where i need to sync all of the documents from 1 index to another elastic cluster with near real-time.  
I'm thinking using logstash elasticsearch input to read all of the documents continuously every minute to sync the doc.  
The thing is, the data that i want to sync is not timeseries data (without timestamp), it's a transactional data. So the document is usually get updated based on \_id field whenever the changes happen to the document.  
My question is, can logstash read the document when they got updated and replaced the document on the new cluster ?

---

<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 16, 2024, 3:05am UTC](https://discuss.elastic.co/t/elasticsearch-input-on-logstash/349609/2 "2024-01-16T03:05:06Z")

</div>

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