zabbix4.4 历史数据存放elasticsearch 并定期清理
一、其他不多说 直接开始做吧 elasticsearch 安装配置 我这里测试用的2台机器安装ES6.8 rpm -ivh elasticsearch-6.8.10.rpm 集群配置 节点一 root@[ 8.1.10.146 @elastic1:/root ]# cat /etc/elasticsearch/elasticsearch.yml |grep -v "^#" cluster.name: Zabbix-history node.name: 8.1.10.146 path.data: /data/ESdata path.logs: /var/log/elasticsearch bootstrap.memory_lock: true network.host: 0.0.0.0 http.max_initial_line_length: 128k http.max_header_size: 64kb http.max_content_length: 500mb discovery.zen.ping.unicast.hosts: ["8.1.10.146", "8.1.10.147"] discovery.zen.minimum_master_nodes: 2 节点二 root@[ 8.1.10.147 @elastic2:/root ]# cat /etc