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
相关推荐
wuicer1 小时前
ubuntu 20.04 安装anaconda以及安装spyder
linux·运维·ubuntu
小晶晶京京3 小时前
day34-LNMP详解
linux·运维·服务器
fengyehongWorld4 小时前
Linux crontab定时任务
linux·运维
碎像4 小时前
Linux上配置环境变量
linux·运维·服务器
sunflower_w6 小时前
linux I2C核心、总线与设备驱动
linux·运维·服务器
myzzb6 小时前
基于uiautomation的自动化流程RPA开源开发演示
运维·python·学习·算法·自动化·rpa
网硕互联的小客服7 小时前
Apache 如何支持SHTML(SSI)的配置方法
运维·服务器·网络·windows·php
落日漫游8 小时前
K8s核心组件全解析
运维·docker·运维开发
Demisse11 小时前
[Linux] Linux文件系统基本管理
linux·运维·服务器
BAOYUCompany11 小时前
暴雨服务器:以定制化满足算力需求多样化
运维·服务器