Fluentd connection to Elasticsearch(cluster)

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)

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