filebeat7.7.0相关详细配置预览- Outputs - File

转载请标明出处:
http://blog.csdn.net/qq_27818541/article/details/108836031
本文出自:【BigManing的博客】

1、file

配置filebeat的输出方式为文件, 一般用于测试。

2、常规配置

# 采集配置
filebeat.inputs:     #收集日志
- type: log         #类型
  enabled: true     #始终收集
  paths:
    - /etc/log/*.log    
# 输出配置
output.file:
  path: "/tmp/filebeat"  #  输出路径
  filename: filebeat    # 输出文件名

3、所有可配置参数

output.file:
  # Boolean flag to enable or disable the output module.
  enabled: true

  # Configure JSON encoding
  codec.json:
    # Pretty-print JSON event
    pretty: false

    # Configure escaping HTML symbols in strings.
    escape_html: false

  # Path to the directory where to save the generated files. The option is
  # mandatory.
  path: "/tmp/filebeat"

  # Name of the generated files. The default is `filebeat` and it generates
  # files: `filebeat`, `filebeat.1`, `filebeat.2`, etc.
  filename: filebeat

  # Maximum size in kilobytes of each file. When this size is reached, and on
  # every Filebeat restart, the files are rotated. The default value is 10240
  # kB.
  rotate_every_kb: 10000

  # Maximum number of files under path. When this number of files is reached,
  # the oldest file is deleted and the rest are shifted from last to first. The
  # default is 7 files.
  number_of_files: 7

  # Permissions to use for file creation. The default is 0600.
  permissions: 0600
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值