Good Morning,
I am trying to send logs from filebeats (in a windows machine) to logstash (in a vmware ubuntu machine)
but I got this error: Connecting error publishing events (retrying): dial tcp 192.168.220.130:5044: connectex: No connection could be made because the target machine actively refused it.
The configuration is : filebeat.yml in a windows machine: output: logstash: hosts: ["192.168.220.130:5044"] index : filebeat console: pretty: true worker: 1 logstash.config in a vmware ubuntu machine : input { lumberjack { port => 5044 type => beats ssl_certificate => "/etc/ssl/logstash.pub" ssl_key => "/etc/ssl/logstash.key" } }
Any tips ?
I tried the same config internally in a vmware ubuntu machine and it is working fine.
Yes, but in the Logstash configuration you should use the beats input plugin, not lumberjack. You also need to make sure the that Filebeat machine can connect to port 5044 on the Logstash machine when Logstash is running, which isn't the case right now according to your error message. Perhaps a firewall is blocking the access?
I tried with both configuration (above and below), input { beats { type => beats port => 5044 } }
I am using Bridge Network, I can ping the vmware ubuntu machine but same problem : Connecting error publishing events (retrying): dial tcp 192.168.220.130:5044: connectex: No connection could be made because the target machine actively refused it.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.