【问题标题】:Error filebeat from Windows machine to vmware Ubuntu machine从 Windows 机器到 vmware Ubuntu 机器的错误 filebeat
【发布时间】:2016-01-18 14:42:00
【问题描述】:

我正在尝试将日志从 filebeats(在 Windows 机器中)发送到 logstash(在 vmware ubuntu 机器中) 但我收到了这个错误:

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.

配置是: Windows 机器中的 filebeat.yml:

output: 
   logstash:
      hosts: ["192.168.220.130:5044"]
   index : filebeat
   console:
   pretty: true
   worker: 1

vmware ubuntu 机器中的logstash.config:

input {
   lumberjack {
        port => 5044 
        type => beats
        ssl_certificate => "/etc/ssl/logstash.pub"
        ssl_key => "/etc/ssl/logstash.key"
     }
}

input {
    beats {
    type => beats
    port => 5044
    }
}

任何提示? 我正在使用 Bridge 网络 我在 vmware ubuntu 机器内部尝试了相同的配置,它工作正常。

【问题讨论】:

    标签: ubuntu virtual-machine logstash elastic-stack


    【解决方案1】:

    我修正了错误。 我有两个不同的问题:

    1 - vmware 使用的是NAT Network 我切换到Bridge Network

    2 - elasticsearch 配置仅适用于localhost,我更改了配置,它正在工作。

    【讨论】:

      猜你喜欢
      • 2014-02-09
      • 1970-01-01
      • 2018-05-05
      • 2013-10-20
      • 2011-05-08
      • 1970-01-01
      • 2019-02-22
      • 2022-07-15
      • 1970-01-01
      相关资源
      最近更新 更多