使用 ELK 和 Filebeat 在不同服务器之间传送日志时出错

Error in shipping logs between different servers using ELK and Filebeat

我在Client-server(Linux Wind-River) 中安装了Filebeat deb 包,在Elk-server(Ubuntu-16.04-server) 中安装了ELK。问题是,我无法从客户端服务器接收日志。我检查了网络统计数据,ELK 服务器中的 5044 端口(监听端口)似乎正在监听。我可以从两侧 ping 通。我也有两个方向的 ssh 连接。

This 是我用来在服务器上安装这些软件包的 link。

我的 Filebeat 配置:

filebeat.prospectors:
- type: log
# Change to true to enable this prospector configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.  paths:
   - /var/log/filebeat/*
   - /var/log/*.log  
  #- c:\programdata\elasticsearch\logs\*
document_type: log
#============================= Filebeat modules =============================== 
filebeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading  
reload.enabled: false
#==================== Elasticsearch template setting ==========================
setup.template.settings:
index.number_of_shards: 3
#----------------------------- Logstash output -------------------------------- 
output.logstash:
# The Logstash hosts
hosts: ["192.168.10.3:5044"]
proxy_url: socks5://wwproxy.seln.ete.ericsson.se:808
# Optional SSL. By default is off. 
# List of root certificates for HTTPS server verifications
ssl.certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]
# Certificate for SSL client authentication
ssl.certificate: "/etc/pki/tls/certs/logstash-forwarder.crt"
# Client Certificate Key
ssl.key: "/etc/pki/tls/private/logstash-forwarder.key"

我发现错误了!问题是 openssl.cnf 中的服务器 IP 应该是桥接接口的 IP 地址。并且用这个 openssl.cnf 生成的证书应该在两个服务器中使用。此外,我还将 ELK 服务器中生成的 .key 共享到 Client-server 以更 secured/authenticate.