Python 版 Filebeat(https://www.elastic.co/products/beats/filebeat) 实时收集日志,发送到下游 logstash 集群
# 后台运行
nohup python filebeat.py filebeat.json &
path
参数需包含 %s
格式符。为 null
时日志无时间后缀null
表示所有行都需要null
没有行需要排除tail_files
配置项功能类似,但是设置为 True
(默认)时启停进程会重复读取文件,设置为 False
会丢数据