Hi,
I am trying to transfer logs from filebeats to logstash, but I get this error in the filebeats log:
dial tcp (ip number):5044: getsockopt: connection refused
In my LogStash config.d the configuration file is: and the content is:
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => "(ipnumber):9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
My filebeat configuration is:
#----------------------------- Logstash output --------------------------------
output.logstash:
# The Logstash hosts
hosts: ["(ipnumber):5044"]
index: filebeat
# Optional SSL. By default is off.
# List of root certificates for HTTPS server verifications
#ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
# Certificate for SSL client authentication
#ssl.certificate: "/etc/pki/client/cert.pem"
# Client Certificate Key
#ssl.key: "/etc/pki/client/cert.key"
As mentioned in here I checked and there is no more configuration files in conf.d
As mentioned in here I did not specify the ip number
Many thanks!