问题描述
我已经安装了elasicsearch和filebeat。
filebeat配置:
output.elasticsearch:
hosts: ["https://myElastic:9200"]
username: "user"
password: "password"
能告诉我,我需要在elasticsearch中配置一些东西吗? 我现在遇到的问题是在Elasticsearch中看不到来自文件拍的数据。
解决方法
您的filebeat配置应该具有输入行。
filebeat.yml:
filebeat.inputs:
- type: log
enabled: true
paths:
- /mylog/*.log
output.elasticsearch:
hosts: ["https://myElastic:9200"]
username: "user"
password: "password"
,我建议您将logstash与filebeat一起使用。 您可以在下面的github存储库中找到如何轻松配置它。
docker-compose config:ELK with Filebeat by Docker-compose