# Fluentd connection to Elasticsearch(cluster)

**URL:** https://discuss.elastic.co/t/fluentd-connection-to-elasticsearch-cluster/221229
**Category:** Elasticsearch
**Created:** [February 27, 2020, 11:55am UTC](https://discuss.elastic.co/t/fluentd-connection-to-elasticsearch-cluster/221229 "2020-02-27T11:55:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Suat\_Bey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suat_bey/32/46322_2.png) [@Suat\_Bey](https://discuss.elastic.co/u/Suat_Bey)
#### Post date: [February 27, 2020, 11:55am UTC](https://discuss.elastic.co/t/fluentd-connection-to-elasticsearch-cluster/221229/1 "2020-02-27T11:55:38Z")

</div>

Hi,

We are trying to send rsyslog from fluentd(td-agent) to cluster elaskticsearch (with xpack), but getting an error .

/etc/td-agent/td-agent.conf

```
<source>

```

@type syslog  
port 5140  
bind 0.0.0.0  
tag system

\<match \*\*\>  
@type copy  
  
@type elasticsearch  
logstash\_format true  
host 10.10.10.10  
port 9200  
ca\_file /etc/certs/ca  
user elasticuser  
password 123456  
ssl\_verify false  
logstash\_prefix fluentd  
logstash\_dateformat %Y%m%d  
include\_tag\_key true  
tag\_key @log\_name  
flush\_interval 5s

Error:  
2020-02-27 13:28:34 +0300 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for 10.10.10.10:9200 (Errno::ECONNREFUSED)

---

<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: [March 26, 2020, 11:55am UTC](https://discuss.elastic.co/t/fluentd-connection-to-elasticsearch-cluster/221229/2 "2020-03-26T11:55:43Z")

</div>

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