I just simply cofigure logstash and filebeat like follow:
filebeat : #output.logstash:
The Logstash hosts
hosts: ["localhost:5043"],
and logstash :
input {
beats {
host => "localhost"
port => "5043" #注意要和filebeat的输出端口一致
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => [ "localhost:9200" ]
}
}
Is there any thing wrong with this simply setting ,It almost make me crazy.
thx for apply,I find that I miss set filebeat.prospectors to be enable, so filebeat did not send logs.
after change it to enable I trouble with other problem .
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.