I am trying to connect filebeat to logstash but I have this error :
● filebeat.service - filebeat
Loaded: loaded (/usr/lib/systemd/system/filebeat.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2018-02-12 14:04:27 CET; 9min ago
Docs: https://www.elastic.co/guide/en/beats/filebeat/current/index.html
Main PID: 56013 (filebeat)
CGroup: /system.slice/filebeat.service
└─56013 /usr/bin/filebeat -c /etc/filebeat/filebeat.yml
Feb 12 14:04:58 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:05:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:06:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:07:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:08:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:09:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:10:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:11:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:12:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
Feb 12 14:13:30 localhost.localdomain /usr/bin/filebeat[56013]: transport.go:125: SSL client failed to connect with: dial tcp 192.168.1.117:5044: getsockopt: connection refused
I have configured my filebeat like this :
tls:
certificate_authorities: ["/etc/ssl/logstash_frwrd.crt"]
# Certificate for TLS client authentication
#certificate: "/etc/pki/client/cert.pem"
# Client Certificate Key
#certificate_key: "/etc/pki/client/cert.key"
and my logstash :
#input section
input{
beats{
port=>5044
ssl=>true
ssl_certificate=>"/etc/ssl/logstash_frwrd.crt"
ssl_key=>"/etc/ssl/logstash-forwarder.key"
}
}