在Syslog启动之前,Fluentd输入Syslog拥有的所有内容
我在ubuntu上有rsyslog配置为将所有内容发送到fluentd
,并且可以正常运行,但是从syslog之前,我有
开始,这些日志消息未发送到/var/log/log/syslog
中的日志消息。服务fluentd
。有没有一种方法可以获取Fluentd
捡起所有东西?具体来说,我正在尝试拾取内核启动日志(价值约10秒)和Cron的@reboot
中的项目。一个适用于/var/log/syslog
但不是fluentd
的简单CRON作业将是@reboot Logger,这不会发送到Fluentd
。
fluentd源配置:
<source>
@type syslog
port 5140
bind 0.0.0.0
tag system
</source>
rsyslog配置在最后添加了此:
*.* @127.0.0.1:5140
I have rsyslog on ubuntu configured to send everything to fluentd
, and it works fine, but there are log messages in /var/log/syslog
from before syslog.service
starts and these log messages are not sent to fluentd
. Is there a way to get fluentd
to pick up everything? Specifically I am trying to pick up the kernel boot log (about 10 seconds worth) and items from cron's @reboot
. A simple cron job that works for /var/log/syslog
but not fluentd
would be @reboot logger this does not get sent to fluentd
.
fluentd source config:
<source>
@type syslog
port 5140
bind 0.0.0.0
tag system
</source>
rsyslog config has this added at the end:
*.* @127.0.0.1:5140
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果要在rsyslog之前开始使用fluentd,请在= syslog.service 行添加
到服务文件。
/etc/systemd/system/fluentd.service
:If you want fluentd to start before rsyslog, add
Before=syslog.service
line to the service file./etc/systemd/system/fluentd.service
: