如何设置elasticsearch和filebeat

z8dt9xmd  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(1)|浏览(493)

我已经安装了elasicsearch和filebeat。
filebeat配置:

  1. output.elasticsearch:
  2. hosts: ["https://myElastic:9200"]
  3. username: "user"
  4. password: "password"

你能告诉我,我需要在elasticsearch中配置一些东西吗。我现在遇到的问题是,在elasticsearch中看不到来自filebeat的数据。

ztyzrc3y

ztyzrc3y1#

您的filebeat配置应该有输入行。
文件节拍.yml:

  1. filebeat.inputs:
  2. - type: log
  3. enabled: true
  4. paths:
  5. - /mylog/*.log
  6. output.elasticsearch:
  7. hosts: ["https://myElastic:9200"]
  8. username: "user"
  9. password: "password"

我建议你用logstash和filebeat。您可以在下面的github存储库中找到如何轻松配置它。
docker compose配置:带有docker compose的filebeat的麋鹿

相关问题