转载请标明出处:
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 encodingcodec.json:# Pretty-print JSON eventpretty: 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