# Failed to open TCP connection to ES while trying to connect from fluentd

**URL:** https://discuss.elastic.co/t/failed-to-open-tcp-connection-to-es-while-trying-to-connect-from-fluentd/293502
**Category:** Elasticsearch
**Created:** [January 5, 2022, 6:53am UTC](https://discuss.elastic.co/t/failed-to-open-tcp-connection-to-es-while-trying-to-connect-from-fluentd/293502 "2022-01-05T06:53:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![subha1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/subha1/32/45343_2.png) [@subha1](https://discuss.elastic.co/u/subha1)
#### Post date: [January 5, 2022, 6:53am UTC](https://discuss.elastic.co/t/failed-to-open-tcp-connection-to-es-while-trying-to-connect-from-fluentd/293502/1 "2022-01-05T06:53:35Z")

</div>

Failed to open TCP connection to ES while trying to connect from fluentd.  
In the cluster, there are 5 clients , 5 masters & 5 data pods are running with 155 fluentd daemonsets.

some of the fluentd pods are getting restarted with below error .

`/opt/td-agent/embedded/lib/ruby/2.4.0/net/http.rb:906:in rescue in block in connect': Failed to open TCP connection to kubernetes.default.svc:443 (getaddrinfo: Name or service not known) (SocketError)`

could you please help here , Thanks.

---

<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: [February 2, 2022, 6:53am UTC](https://discuss.elastic.co/t/failed-to-open-tcp-connection-to-es-while-trying-to-connect-from-fluentd/293502/2 "2022-02-02T06:53:39Z")

</div>

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