前置条件:
修改Logstash 配置文件,将output改为如下地址,注释掉控制台输出,添加elasticsearch主机配置
output{ #stdout{codec => rubydebug} elasticsearch{ hosts => ["172.1.2.12:9200","172.1.2.14:9200","172.1.2.15:9200"] } }
启动filebeat ./filebeat -c filebeat.yml
./filebeat -c filebeat.yml