centos

在CentOS上如何提升Filebeat效率

小樊
37
2025-11-29 19:12:34
栏目: 智能运维

在 CentOS 上提升 Filebeat 效率的实用方案

一 系统层优化

二 Filebeat 配置优化

示例配置片段(仅示意,按实际环境调参)

filebeat.inputs:
- type: filestream
  paths:
    - /var/log/*.log
  max_concurrent_files: 4096
  harvester_limit: 4096
  ignore_older: 168h
  close_inactive: 2h
  scan_frequency: 10s
  harvester_buffer_size: 32KB

queue.mem:
  events: 16384
  flush.min_events: 1536
  flush.timeout: 1s

output.elasticsearch:
  hosts: ["http://es-node:9200"]
  worker: 3
  bulk_max_size: 15000
  flush_interval: 1s
  compression: gzip

三 监控与迭代

四 架构与运维建议

0
看了该问题的人还看了