首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >syslog-ng停止了,不想启动

syslog-ng停止了,不想启动
EN

Server Fault用户
提问于 2013-04-16 05:24:49
回答 1查看 707关注 0票数 0

我最近注意到我的syslog是空的。

我试着重新启动它,但是我得到了这个错误:

代码语言:javascript
复制
$ /etc/init.d/syslog-ng reload
Reload system logging: syslog-ngsyntax error in /etc/syslog-ng/syslog-ng.conf at line 99.

syslog-ng documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng
 failed!

这是syslog-ng.conf的一部分。

代码语言:javascript
复制
9. filter f_auth { facility(auth, authpriv) and not filter(f_debug); };
94. filter f_cron { facility(cron) and not filter(f_debug); };
95. filter f_daemon { facility(daemon) and not filter(f_debug); };
96. filter f_kern { facility(kern) and not filter(f_debug); };
97. filter f_lpr { facility(lpr) and not filter(f_debug); };
98. filter f_local { facility(local0, local1, local3, local4, local5,
99.                         local6, local7) and not filter(f_debug); };
100. filter f_mail { facility(mail) and not filter(f_debug); };
101. filter f_news { facility(news) and not filter(f_debug); };
102. filter f_syslog3 { not facility(auth, authpriv, mail) and not filter(f_debug); };
103. filter f_user { facility(user) and not filter(f_debug); };
104. filter f_uucp { facility(uucp) and not filter(f_debug); };

你知不知道,有什么不对的?操作系统是Debian压缩程序。

EN

回答 1

Server Fault用户

发布于 2013-04-16 06:00:55

您必须将第98行和第99行放在一行中:

过滤f_local {设施(local0,local1,local3,local4,local5,local6,local7)而不是过滤器(F_debug);};

如果需要两行,请使用第一行末尾的\

过滤f_local {设施(local0,local1,local3,local4,local5,\ local6,local7)而不是过滤器(F_debug);};

票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/499696

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档