# Logging to BOTH cloud and onpremise logstash/elasticsearch?

**URL:** https://discuss.elastic.co/t/logging-to-both-cloud-and-onpremise-logstash-elasticsearch/251653
**Category:** Beats
**Tags:** heartbeat
**Created:** [October 10, 2020, 7:22pm UTC](https://discuss.elastic.co/t/logging-to-both-cloud-and-onpremise-logstash-elasticsearch/251653 "2020-10-10T19:22:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Porton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/porton/32/47961_2.png) [@Porton](https://discuss.elastic.co/u/Porton)
#### Post date: [October 10, 2020, 7:22pm UTC](https://discuss.elastic.co/t/logging-to-both-cloud-and-onpremise-logstash-elasticsearch/251653/1 "2020-10-10T19:22:07Z")

</div>

Hi is it possible to send hearbeats to BOTH cloud and on-premise logstash/elasticsearch from one hearbeat application ?

Currently running 2 hearbeat applications, one is sending heartbeat to cloud and another is sending heartbeat to logstash on-premise.

This works fine, although less than ideal.

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 10, 2020, 9:49pm UTC](https://discuss.elastic.co/t/logging-to-both-cloud-and-onpremise-logstash-elasticsearch/251653/2 "2020-10-10T21:49:21Z")

</div>

No, it is not possible, the beats can have only one output.

What you can do is send the data to a Kafka cluster and configure both your cloud and on-premises logstash to consume from that Kafka cluster, this way you would have only one heartbeat, but would need another tool and make both your cloud and on-premises talk to that Kafka Cluster.

You can also send only to the on-premises logstash and configure this logstash to ship to the cloud.

---

<div class="post-metadata">

### Author: ![Porton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/porton/32/47961_2.png) [@Porton](https://discuss.elastic.co/u/Porton)
#### Post date: [October 11, 2020, 6:09am UTC](https://discuss.elastic.co/t/logging-to-both-cloud-and-onpremise-logstash-elasticsearch/251653/3 "2020-10-11T06:09:25Z")

</div>

Thanks for the confirmation. we'll go Logstash way.

---

<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 8, 2020, 8:09am UTC](https://discuss.elastic.co/t/logging-to-both-cloud-and-onpremise-logstash-elasticsearch/251653/4 "2020-11-08T08:09:42Z")

</div>

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