
최근에 내 syslog가 비어 있는 것을 발견했습니다.
다시 시작하려고 했지만 다음 오류가 발생합니다.
$ /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의 일부입니다.
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 Squeeze)입니다.
답변1
98행과 99행을 한 행에 넣어야 합니다.
filter f_local { Facility(local0, local1, local3, local4, local5, local6, local7) 및 not filter(f_debug); };
두 줄이 필요한 경우 \
첫 번째 줄 끝에 를 사용하세요.
필터 f_local { 시설(local0, local1, local3, local4, local5, \
local6, local7) 및 필터(f_debug)가 아님; };