在Debian上选择Filebeat输出插件,需根据实际需求从官方支持的插件中挑选,以下是常见插件及配置要点:
output.elasticsearch: { hosts: ["localhost:9200"], index: "filebeat-%{+yyyy.MM.dd}" }。output.logstash: { hosts: ["localhost:5044"] }。output.kafka: { hosts: ["kafka:9092"], topic: "filebeat" }。output.redis: { hosts: ["redis:6379"], key: "filebeat" }。output.console: {}。选择建议:
配置时需编辑/etc/filebeat/filebeat.yml,重启服务生效。非官方插件(如HTTP)需自行开发,建议优先使用官方支持的插件以确保稳定性。