Filebeat 不记录到文件,总是只记录到系统日志
Filebeat not logging to files, always only to syslog
我的 filebeat (v7.6.0) 配置如下:
logging.level: debug
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat
keepfiles: 7
permissions: 0755
它不创建文件,也不记录文件,它只是继续记录到系统日志。
我有什么没做的done/have我做错了吗?
根据文档:
When Filebeat is running on a Linux system with systemd, it uses by default the -e command line option, that makes it write all the logging output to stderr so it can be captured by journald. Other outputs are disabled.
我的 filebeat (v7.6.0) 配置如下:
logging.level: debug
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat
keepfiles: 7
permissions: 0755
它不创建文件,也不记录文件,它只是继续记录到系统日志。
我有什么没做的done/have我做错了吗?
根据文档:
When Filebeat is running on a Linux system with systemd, it uses by default the -e command line option, that makes it write all the logging output to stderr so it can be captured by journald. Other outputs are disabled.