# How to send data from elasticsearch to another elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-send-data-from-elasticsearch-to-another-elasticsearch/158215>\
**Category:** Elasticsearch\
**Created:** [November 26, 2018, 4:03pm UTC](https://discuss.elastic.co/t/how-to-send-data-from-elasticsearch-to-another-elasticsearch/158215 "2018-11-26T16:03:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hama97](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hama97](https://discuss.elastic.co/u/hama97)\
**Post date:** [November 26, 2018, 4:03pm UTC](https://discuss.elastic.co/t/how-to-send-data-from-elasticsearch-to-another-elasticsearch/158215/1 "2018-11-26T16:03:46Z")

</div>

i use elasticsearch for wazuh and I need to send data from my local elasticsearch to another elasticseatch.  
I want to send only the data that have the level field of a given threshold.  
how i do it?

Thanks,

Hama

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 26, 2018, 11:15pm UTC](https://discuss.elastic.co/t/how-to-send-data-from-elasticsearch-to-another-elasticsearch/158215/2 "2018-11-26T23:15:43Z")

</div>

There's a few options;

- Use Alerting to run a query to match the threshold and then use the webhook to send to the other cluster
- Use Logstash to do something similar
- Use remote reindexing to do the same

---

<div class="post-metadata">

**Author:** ![hama97](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@hama97](https://discuss.elastic.co/u/hama97)\
**Post date:** [November 27, 2018, 8:03am UTC](https://discuss.elastic.co/t/how-to-send-data-from-elasticsearch-to-another-elasticsearch/158215/3 "2018-11-27T08:03:55Z")

</div>

can you give me details on how each step?  
There is documentation that explains how to do?

Thanks.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 28, 2018, 1:36am UTC](https://discuss.elastic.co/t/how-to-send-data-from-elasticsearch-to-another-elasticsearch/158215/4 "2018-11-28T01:36:34Z")

</div>

I'm happy to point you to the relevant documentation.

For the first option;  
[https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches/monitoring\_free\_disk\_space](https://github.com/elastic/examples/tree/master/Alerting/Sample%20Watches/monitoring_free_disk_space) as an idea for the threshold, then the webhook - [https://www.elastic.co/guide/en/elastic-stack-overview/6.5/actions-webhook.html](https://www.elastic.co/guide/en/elastic-stack-overview/6.5/actions-webhook.html)

For the second;  
Input from Elasticsearch [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html) and then output [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html)

For the last one;  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.5/docs-reindex.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/docs-reindex.html)

---

<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 26, 2018, 1:36am UTC](https://discuss.elastic.co/t/how-to-send-data-from-elasticsearch-to-another-elasticsearch/158215/5 "2018-12-26T01:36:41Z")

</div>

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