Hi All,
Please help, Filebeat failed to send logs to logstash with the error below:
ERR Connecting error publishing events (retrying): dial tcp x.x.x.x:5044: getsockopt: connection refused
Telnet from the client server refused on port 5044
filebeat.yml:
filebeat:
prospectors:
-
paths:
- /var/log/secure
- /var/log/messages
- /var/log/auth.log
input_type: log
document_type: syslog
registry_file: /var/lib/filebeat/registry
output:
logstash:
hosts: ["192.168.2.40:5044"]
bulk_max_size: 100
ssl:
certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]
logstash/conf.d/02-beat-input.conf
input {
beats {
client_inactivity_timeout => 86400
port => 5044
ssl => true
ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"
ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"
}
}
I removed the ssl on both but still failed:
Thanks for helping
Bronq