syslog-ng 无法记录info级别日志的问题求助
syslog-ng 无法记录info级别日志的问题求助
各位大佬好,我最近碰到个头疼的问题:syslog-ng死活不记录info级别的日志,但是warn、err这些级别都正常工作。我把当前的配置贴出来,麻烦帮忙看看哪里出问题了?
我的syslog-ng配置内容如下:
@version: 4.6 # # Syslog-ng default configuration file for Gentoo Linux # https://bugs.gentoo.org/426814 @include "scl.conf" options { threaded(yes); chain_hostnames(no); # The default action of syslog-ng is to log a STATS line # to the file every 10 minutes. That's pretty ugly after a while. # Change it to every 12 hours so you get a nice daily update of # how many messages syslog-ng missed (0). stats(freq(43200)); # The default action of syslog-ng is to log a MARK line # to the file every 20 minutes. That's seems high for most # people so turn it down to once an hour. Set it to zero # if you don't want the functionality at all. mark_freq(3600); }; source src { system(); internal(); }; destination messages { file("/var/log/messages"); }; destination kern { file("/var/log/kern.log"); }; destination auth { file("/var/log/auth.log"); }; destination mail {...
我已经确认过日志文件的权限没问题,也重启过好几次syslog-ng服务,但info级别的日志就是没出现在对应的文件里。会不会是配置里漏了什么过滤规则?或者source的设置有问题?麻烦大家帮我排查下,谢谢啦!
备注:内容来源于stack exchange,提问作者GreninjaShuriken4
相关产品推荐
相关产品推荐

