centos

如何确保CentOS上Filebeat日志的完整性

小樊
35
2025-11-17 21:10:38
栏目: 智能运维

确保 CentOS 上 Filebeat 日志完整性的实用方案

一 基础可靠性配置

二 端到端可观测性与校验

三 日志内容层面的完整性

四 运行环境与权限加固

五 快速自检清单

检查项 操作命令或配置 期望结果
服务健康 systemctl status filebeat;journalctl -xe -u filebeat 服务 active,无持续报错
配置语法 yamllint /etc/filebeat/filebeat.yml 无语法错误
连通性 curl -I http://es:9200;telnet logstash 5044 返回 200/Connected
数据落地 curl -X GET “http://localhost:9200/_cat/indices?v”;filebeat-/_search?pretty&q= 索引存在且有文档
多行事件 检查 multiline 配置与样例日志 堆栈/异常为单条事件
时间戳 Kibana Discover 观察 @timestamp 时间顺序正确、无未来时间
指标告警 Prometheus/Grafana 看板与阈值 无持续积压与错误激增

0
看了该问题的人还看了