debian

如何优化Debian Filebeat的性能

小樊
32
2025-12-02 01:58:42
栏目: 智能运维

Debian上Filebeat性能优化实操指南

一 系统层优化

二 Filebeat关键配置优化

三 推荐参数示例

filebeat.inputs:
- type: filestream
  paths:
    - /var/log/*.log
  max_concurrent_files: 100
  ignore_older: 168h
  close_inactive: 5m
  scan_frequency: 15s

harvester_buffer_size: 40960000
filebeat.spool_size: 250000
filebeat.idle_timeout: 1s

queue.type: persisted
queue.max_bytes: 1024mb
flush.min_events: 2048
flush.timeout: 1s

pipeline.workers: 4
pipeline.batch.size: 4000

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

说明:以上为通用起点,需结合日志速率、文件数量、ES集群规模与节点资源逐步压测微调。

四 监控与迭代方法

五 架构与运维建议

0
看了该问题的人还看了