# Send Logstash events to secure Elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/send-logstash-events-to-secure-elasticsearch-cluster/245810>\
**Category:** Elasticsearch\
**Created:** [August 20, 2020, 6:34pm UTC](https://discuss.elastic.co/t/send-logstash-events-to-secure-elasticsearch-cluster/245810 "2020-08-20T18:34:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![panwarsagar](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@panwarsagar](https://discuss.elastic.co/u/panwarsagar)\
**Post date:** [August 20, 2020, 6:34pm UTC](https://discuss.elastic.co/t/send-logstash-events-to-secure-elasticsearch-cluster/245810/1 "2020-08-20T18:34:29Z")

</div>

Hi,

I have a 6 node Elasticsearch cluster deployed at two center with two Zone configuration. There are two master nodes (Master-1 & Master-2) at two locations. Both Master nodes are configured to use different certificates Master-1 with DNS [master-1.example.com](http://master-1.example.com) and Master-2 with DNS [master-2.example.com](http://master-2.example.com).  
I have to send the Logstash events to my elastic search cluster. how i can configure both master node with SSL config in logstash output config block.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 20, 2020, 6:57pm UTC](https://discuss.elastic.co/t/send-logstash-events-to-secure-elasticsearch-cluster/245810/2 "2020-08-20T18:57:30Z")

</div>

> [@panwarsagar](#):
>
> I have a 6 node Elasticsearch cluster deployed at two center with two Zone configuration. There are two master nodes (Master-1 & Master-2) at two locations. Both Master nodes are configured to use different certificates Master-1 with DNS [master-1.example.com](http://master-1.example.com) and Master-2 with DNS [master-2.example.com](http://master-2.example.com).

First I would recommend you read [this section in the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/high-availability-cluster-design.html) as it looks like you are looking for high availability and still only have 2 zones. Be aware that it is impossible to make Elasticsearch highly available across only 2 zones.

If you have dedicated master nodes (of which you should have 3), you should generally not send traffic through these. Instead direct the traffic to the data nodes.

> [@panwarsagar](#):
>
> I have to send the Logstash events to my Elasticsearch cluster. how i can configure both master node with SSL config in logstash output config block.

I do not think the Elasticsearch output plugin in Logstash can handle certificates per node, so I am not sure this is possible. Why do you have it set up this way in the first place?

---

<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:** [September 17, 2020, 6:57pm UTC](https://discuss.elastic.co/t/send-logstash-events-to-secure-elasticsearch-cluster/245810/3 "2020-09-17T18:57:31Z")

</div>

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