# Fluentd configuration for logstash not working

**URL:** https://discuss.elastic.co/t/fluentd-configuration-for-logstash-not-working/140961
**Category:** Logstash
**Created:** [July 20, 2018, 8:35pm UTC](https://discuss.elastic.co/t/fluentd-configuration-for-logstash-not-working/140961 "2018-07-20T20:35:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Krishna2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishna2/32/20893_2.png) [@Krishna2](https://discuss.elastic.co/u/Krishna2)
#### Post date: [July 20, 2018, 8:35pm UTC](https://discuss.elastic.co/t/fluentd-configuration-for-logstash-not-working/140961/1 "2018-07-20T20:35:54Z")

</div>

this is my simple logstash config for fluentd. I saw from documentation that  
fluentd running on port 8888.  
Also I could not output to Elasticsearch. and it says connection refused.  
can some one tell me what is wrong ? I am new to fluentd.

input {  
tcp {  
codec =\> fluent  
port =\> 8888  
}  
}  
output {  
stdout {}  
}  
------------flentd config  
\<match td._._\>  
@type tdlog  
@id output\_td  
apikey YOUR\_API\_KEY  
auto\_create\_table  
  
@type file  
path /var/log/td-agent/buffer/td

\<match debug.\*\*\>  
@type stdout  
@id output\_stdout

 @type http @id input\_http port 8888

\<match \*.\*\*\>  
type copy  
  
type elasticsearch  
host localhost  
port 9200  
include\_tag\_key true  
tag\_key @log\_name  
logstash\_format true  
flush\_interval 10s

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 20, 2018, 9:16pm UTC](https://discuss.elastic.co/t/fluentd-configuration-for-logstash-not-working/140961/2 "2018-07-20T21:16:26Z")

</div>

Since there probably aren't that many people who know fluentd here, perhaps you can explain what you're trying to accomplish? How do you intend to connect fluentd and Logstash?

---

<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: [August 17, 2018, 9:16pm UTC](https://discuss.elastic.co/t/fluentd-configuration-for-logstash-not-working/140961/3 "2018-08-17T21:16:34Z")

</div>

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