多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# :-: filebeat的安装和配置 ### 1、安装Logstash 下载filebeat-7.7.0-windows-x86\_64 2、配置 进入配置文件目录 ~~~bash 编辑 filebeat.yml 文件 ~~~ 编辑文件 ``` server.host: "0.0.0.0" elasticsearch.hosts: ["http://localhost:9200"] ``` ![](https://img.kancloud.cn/39/b0/39b0d5e56bf970b15ba2d41be938e141_914x471.png) 3、编辑logstash 配置 ``` input { beats { host => "localhost" port => 5044 type => "logs" codec => "json" } } filter { mutate { rename => { "[host][name]" => "host" } } } output { elasticsearch { hosts => ["127.0.0.1:9200"] index => "bnz_log_admin" } } ``` 4、启动服务 ~~~ filebeat -e -c filebeat.yml ~~~