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
相关推荐
亮子AI8 分钟前
【Nginx】怎样清除 Nginx 的缓存?
运维·nginx·缓存
vvw&24 分钟前
如何在 Ubuntu 24.04 上安装和使用 AdGuard
linux·运维·服务器·ubuntu·adguard
weixin_4532536533 分钟前
python+playwright自动化如何解决文件上传问题
运维·自动化
King's King34 分钟前
超详细的自动化立体仓库技术标书-模板
运维·自动化
TTBIGDATA1 小时前
【Ambari开启Kerberos】Step1-KDC服务初始化安装-适合Ubuntu
运维·数据仓库·hadoop·ubuntu·ambari·hdp·bigtop
Fr2ed0m2 小时前
Nginx防御HTTP Host头注入漏洞:实战配置漏洞修复教程
运维·nginx·http
安审若无2 小时前
linux怎么检查磁盘是否有坏道
linux·运维·服务器
HalvmånEver2 小时前
Linux的第二章 : 基础的指令(二)
linux·运维·服务器·开发语言·学习
大梦南柯2 小时前
linux创建网站
linux·运维·服务器
刘永鑫Adam2 小时前
代码管理及Linux模拟工具Git for Windows安装使用教程
linux·运维·服务器·git