ubuntu

ubuntu filebeat怎样进行性能调优

小樊
40
2025-11-23 07:59:57
栏目: 智能运维

Ubuntu 上 Filebeat 性能调优实战指南

一 基线检查与系统准备

二 输入与采集层优化

三 队列与缓存策略

四 输出与网络层优化

五 推荐参数示例与落地步骤

# filebeat.yml 示例(聚焦吞吐与可靠性)
filebeat.inputs:
- type: filestream
  paths:
    - /var/log/*.log
  multiline.pattern: '^[[:space:]]'
  multiline.negate: true
  multiline.match: after
  ignore_older: 24h
  close_inactive: 5m
  scan_frequency: 5s
  harvester_buffer_size: 32KiB   # 大行日志可适当增大

queue.spool:
  file:
    path: "${path.data}/spool.dat"
    size: 512MiB
    page_size: 16KiB
    prealloc: true
  write:
    buffer_size: 10MiB
    flush.events: 2048
    flush.timeout: 5s
    codec: cbor
  read:
    flush.timeout: 0s

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

0
看了该问题的人还看了