如何设置elasticsearch和filebeat

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

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

output.elasticsearch:
  hosts: ["https://myElastic:9200"]
  username: "user"
  password: "password"

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

ztyzrc3y

ztyzrc3y1#

您的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配置:带有docker compose的filebeat的麋鹿

相关问题