Error when starting syslog-ng 3.0.1
Did as suggested. The errors are now a lot less but now syslog-ng won't start. Here's the error I get [root@soc-nsm-002 init.d]# ./syslog-ng restart Shutting down system logger: [ OK ] Starting system logger: Configuration file has no version number, assuming syslog-ng 2.1 format. Please add @version: maj.min to the beginning of the file; WARNING: global: the default value of chain_hostnames is changing to 'no' in version 3.0, please update your configuration accordingly; syntax error in /etc/syslog-ng/syslog-ng.conf at line 2. # syslog-ng configuration file. @version: 3.0 # # Thi Message: 2 Date: Fri, 1 May 2009 13:15:10 -0700 From: "Ngim, Hyrum CTR ADCF/Arrowpoint" <hyrum.ngim.ctr@awps.army.mil> Subject: Re: [syslog-ng] Error when starting syslog-ng 3.0.1 To: Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu> Message-ID: <8B986F9B35D04C428A6B98996432C79B05ADE7311E@fedmail01.fed.awps.army.mil> Content-Type: text/plain; charset="iso-8859-1" At the very top of your config file, it will need to have: @version: 3.0 You'll just need to remove the # sign.
Place it at the very top :) So it would look like this: @version: 3.0 # syslog-ng configuration file. # -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Bristol, Gary L. Sent: Friday, May 01, 2009 2:51 PM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] Error when starting syslog-ng 3.0.1 Did as suggested. The errors are now a lot less but now syslog-ng won't start. Here's the error I get [root@soc-nsm-002 init.d]# ./syslog-ng restart Shutting down system logger: [ OK ] Starting system logger: Configuration file has no version number, assuming syslog-ng 2.1 format. Please add @version: maj.min to the beginning of the file; WARNING: global: the default value of chain_hostnames is changing to 'no' in version 3.0, please update your configuration accordingly; syntax error in /etc/syslog-ng/syslog-ng.conf at line 2. # syslog-ng configuration file. @version: 3.0 # # Thi Message: 2 Date: Fri, 1 May 2009 13:15:10 -0700 From: "Ngim, Hyrum CTR ADCF/Arrowpoint" <hyrum.ngim.ctr@awps.army.mil> Subject: Re: [syslog-ng] Error when starting syslog-ng 3.0.1 To: Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu> Message-ID: <8B986F9B35D04C428A6B98996432C79B05ADE7311E@fedmail01.fed.awps.army.mil> Content-Type: text/plain; charset="iso-8859-1" At the very top of your config file, it will need to have: @version: 3.0 You'll just need to remove the # sign.
It needs to be the very first line in the file. You have it as the second line. -----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Bristol, Gary L. Sent: Friday, May 01, 2009 4:51 PM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] Error when starting syslog-ng 3.0.1 Did as suggested. The errors are now a lot less but now syslog-ng won't start. Here's the error I get [root@soc-nsm-002 init.d]# ./syslog-ng restart Shutting down system logger: [ OK ] Starting system logger: Configuration file has no version number, assuming syslog-ng 2.1 format. Please add @version: maj.min to the beginning of the file; WARNING: global: the default value of chain_hostnames is changing to 'no' in version 3.0, please update your configuration accordingly; syntax error in /etc/syslog-ng/syslog-ng.conf at line 2. # syslog-ng configuration file. @version: 3.0 # # Thi Message: 2 Date: Fri, 1 May 2009 13:15:10 -0700 From: "Ngim, Hyrum CTR ADCF/Arrowpoint" <hyrum.ngim.ctr@awps.army.mil> Subject: Re: [syslog-ng] Error when starting syslog-ng 3.0.1 To: Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu> Message-ID: <8B986F9B35D04C428A6B98996432C79B05ADE7311E@fedmail01.fed.awps.army.mil> Content-Type: text/plain; charset="iso-8859-1" At the very top of your config file, it will need to have: @version: 3.0 You'll just need to remove the # sign.
participants (4)
-
Bristol, Gary L.
-
Charles Jennings
-
Ngim, Hyrum CTR ADCF/Arrowpoint
-
okapareeya@hotmail.com