elk开启组件监控
效果:
logstash配置
/etc/logstash/logstash.yml
root@node1:~# grep -Ev "^#|^$" /etc/logstash/logstash.yml
path.data: /var/lib/logstash
path.logs: /var/log/logstash
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: Tianji@iecs2023
xpack.monitoring.elasticsearch.hosts: ["http://10.140.19.202:9200", "http://10.140.19.205:9200", "10.140.19.206:9200"]
filebeat配置
/etc/filebeat/filebeat.yml文章来源:https://www.toymoban.com/news/detail-635021.html
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch:
hosts: ["http://10.140.19.202:9200","http://10.140.19.205:9200","http://10.140.19.206:9200"]
username: "elastic"
password: "Tianji@iecs2023"
elasticsearch配置
/etc/elasticsearch/elasticsearch.yml文章来源地址https://www.toymoban.com/news/detail-635021.html
xpack.monitoring.enabled: true
xpack.monitoring.collection.enabled: true
到了这里,关于elk开启组件监控的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!