我已经配置了ELK,一切正常。还配置了filebeat,它还将数据传输到logstash。
之后我想配置我的其他服务器也转发日志。在上面安装了filebeat并添加了以下配置
# ============================== Filebeat inputs ===============================
filebeat.inputs:
# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.
# filestream is an input for collecting log messages from files.
- type: log
enabled: true
paths:
- /var/log/*.log
- type: log
enabled: true
paths:
- /var/log/syslog
但我只有 Kabana 中的第一台服务器。奔跑吧
filebeat test output
logstash: 10.0.10.42:5044...
connection...
parse host... OK
dns lookup... OK
addresses: 10.0.10.42
dial up... OK
TLS... WARN secure connection disabled
talk to server... OK
我做错了什么?
也许 filebeat 部分可以正常工作,但logstash 输入部分却不能?你能分享一下你的logstash输入部分吗?