elk开启组件监控

elk开启组件监控

效果:

logstash配置

/etc/logstash/logstash.yml

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

yml 复制代码
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

bash 复制代码
xpack.monitoring.enabled: true
xpack.monitoring.collection.enabled: true
相关推荐
Web极客码42 分钟前
虚拟主机与独立服务器:哪个更好?
运维·服务器·虚拟主机
小突突突42 分钟前
个人博客系统测试报告
运维·网络·功能测试
水银嘻嘻1 小时前
web 自动化之 Unittest 四大组件
运维·前端·自动化
爆肝疯学大模型1 小时前
SQL server数据库实现远程跨服务器定时同步传输数据
运维·服务器·数据库
wanhengidc2 小时前
服务器中存储空间不足该怎么办?
运维·服务器·网络
kedvellek2 小时前
Linux 内核链表宏的详细解释
linux·运维·链表
冼紫菜3 小时前
解决 CentOS 7 镜像源无法访问的问题
linux·运维·服务器·centos
几道之旅3 小时前
分别在windows和linux上使用curl,有啥区别?
linux·运维·windows
季柳东3 小时前
在虚拟机Ubuntu18.04中安装NS2教程及应用
linux·运维·ubuntu
christine-rr3 小时前
【25软考网工】第六章(4)VPN虚拟专用网 L2TP、PPTP、PPP认证方式;IPSec、GRE
运维·网络·网络协议·网络工程师·ip·软考·考试