# Fluentd not connected to elasticsearch

**URL:** https://discuss.elastic.co/t/fluentd-not-connected-to-elasticsearch/245919
**Category:** Elasticsearch
**Created:** [August 21, 2020, 12:49pm UTC](https://discuss.elastic.co/t/fluentd-not-connected-to-elasticsearch/245919 "2020-08-21T12:49:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![samra1810](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@samra1810](https://discuss.elastic.co/u/samra1810)
#### Post date: [August 21, 2020, 12:49pm UTC](https://discuss.elastic.co/t/fluentd-not-connected-to-elasticsearch/245919/1 "2020-08-21T12:49:04Z")

</div>

I have installed td-agent rpm on linux and trying to connect to elastic search. but however when i am starting td-agent, it is not getting connected to elasticsearch. Elastic Search service is up and running.

Error on log  
2020-08-21 11:44:09 +0530 [info]: starting fluentd-1.11.1 pid=4504 ruby="2.4.10"  
2020-08-21 11:44:09 +0530 [info]: spawn command to main: cmdline=["/opt/td-agent/embedded/bin/ruby", "-Eascii-8bit:ascii-8bit", "/opt/td-agent/embedded/bin/fluentd", "--log", "/var/log/td-agent/td-agent.log", "--daemon", "/var/run/td-agent/td-agent.pid", "--under-supervisor"]  
2020-08-21 11:44:09 +0530 [info]: adding match pattern="_log_" type="elasticsearch"  
2020-08-21 11:44:09 +0530 [debug]: #0 'host 127.17.106.30' is tested built-in placeholder(s) but there is no valid placeholder(s). error: Parameter 'host: 127.17.106.30' doesn't have tag placeholder  
2020-08-21 11:44:09 +0530 [debug]: #0 Need substitution: true  
2020-08-21 11:44:09 +0530 [debug]: #0 'host\_placeholder 127.17.106.30' is tested built-in placeholder(s) but there is no valid placeholder(s). error: Parameter 'host\_placeholder: 127.17.106.30' doesn't have tag placeholder  
2020-08-21 11:44:11 +0530 [warn]: #0 Could not communicate to Elasticsearch, resetting connection and trying again. Connection refused - connect(2) for 127.17.106.30:9200 (Errno::ECONNREFUSED)  
2020-08-21 11:44:11 +0530 [warn]: #0 Remaining retry: 14. Retry to communicate after 2 second(s).

---

<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 18, 2020, 12:49pm UTC](https://discuss.elastic.co/t/fluentd-not-connected-to-elasticsearch/245919/2 "2020-09-18T12:49:04Z")

</div>

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