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
相关推荐
kaoa0005 小时前
Linux入门攻坚——62、memcached使用入门
linux·运维·memcached
model20056 小时前
alibaba linux3 系统盘清理
linux·运维·服务器
WG_176 小时前
Linux:动态库加载总结_进程间通信+进程池 + 进程IPC(27/28/29/30/31/32)
linux·运维·服务器
一只懒鱼a6 小时前
docker部署nacos (版本2.3.2)
运维·docker
信创天地9 小时前
国产堡垒机部署实战:以奇安信、天融信为例构建运维安全三重防线
运维·安全
呉師傅10 小时前
东芝3525AC彩色复印机CC219测试页打印方法【实际操作】
运维·网络·windows·计算机外设·电脑
宴之敖者、11 小时前
Linux——权限
linux·运维·服务器
oscar99911 小时前
构建敏捷团队的DevOps测试策略:速度与可靠性的平衡艺术
运维·测试·devops
星辰&与海12 小时前
Proxmox导入虚拟机后进入dracut紧急模式
运维
Serverless社区13 小时前
进阶指南:BrowserUse + Agentrun Sandbox 最佳实践指南
运维·阿里云·云原生·serverless·函数计算