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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.