💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# :-: 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 ~~~