[syslog-ng] syntax error when using syslog-ng.conf from debian packaging

Laszlo Szemere (lszemere) Laszlo.Szemere at oneidentity.com
Thu Nov 21 09:00:17 UTC 2019


Hello Alex,
 the configuration file itself is not complete, we use the 'include' mechanism to hide some platform specific details.

 The README file explains it in details: https://github.com/syslog-ng/syslog-ng/blob/master/packaging/debian/README.source#L40
 The relevant section from the mentioned install script: https://github.com/syslog-ng/syslog-ng/blob/master/packaging/debian/syslog-ng-core.install#L68

 Hope this will help!

Br,
Laci

________________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Alexandre Santos <alexandre.rosas.santos at gmail.com>
Sent: Wednesday, November 20, 2019 17:09
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] syntax error when using syslog-ng.conf from debian     packaging

CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.

Hi,
Sorry for the late reply.

In fact variable tty10 is not set in my environment.
I am using debian 9, syslog-ng version 3.24.1
I am creating my own debian package using the CMakeFile in attachment.
I am using the configuration file: https://github.com/syslog-ng/syslog-ng/blob/master/packaging/debian/syslog-ng.conf<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsyslog-ng%2Fsyslog-ng%2Fblob%2Fmaster%2Fpackaging%2Fdebian%2Fsyslog-ng.conf&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196132864&sdata=W2V4Dc8qLYOLvuzbZaTxXcGSRC17Gwdl4mRQpDtvgWQ%3D&reserved=0>

Cheers,
Alex

On Wed, Nov 13, 2019 at 5:59 AM Peter Kokai (pkokai) <Peter.Kokai at oneidentity.com<mailto:Peter.Kokai at oneidentity.com>> wrote:
Hello,

At first glance this looks like the issue found in 3.23.1: https://github.com/syslog-ng/syslog-ng/issues/2906<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsyslog-ng%2Fsyslog-ng%2Fissues%2F2906&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196132864&sdata=K6pBUfND6%2F5pfYJH8C67%2BGMSYhOBHR0MENLz1GPCCco%3D&reserved=0>
Could you verify by checking either master or 3.24.1 ?

If not please provide more information as such:
* debian version
* syslog-ng version
* how/where do you obtain your debian packages
* configuration file

--
Kokan

On Tue, Nov 12, 2019 at 02:59:53PM +0000, Alexandre Santos wrote:
> CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
>
> Hi,
>
> I am  running into the following error when running the syslog-ng with the syslog-ng.conf from debian packaging:
>
> Error parsing affile, syntax error, unexpected ')', expecting LL_IDENTIFIER or LL_STRING in /usr/local/etc/syslog-ng.conf:68:34-68:35:
> 63      #
> 64      destination d_console { usertty("root"); };
> 65
> 66      # Virtual console.
> 67      #
> 68----> destination d_console_all { file(`tty10`); };
> 68---->                                  ^
>
> Do you have any idea about this?
>
> Thanks in advance,
> Alex

> ______________________________________________________________________________
> Member info: https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=02%7C01%7CPeter.Kokai%40oneidentity.com%7Cd78813e10c6a44a214f108d7678102ee%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637091676118465862&sdata=CGNREooUzxJttjlY3ZC%2FB9KopBaqbjWHId0SJRkKcOA%3D&reserved=0<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196142860&sdata=FWt1FhBFjSrVdTIpanlEu5L%2BcY%2FSVLmN%2Bv5qRLidw9g%3D&reserved=0>
> Documentation: https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=02%7C01%7CPeter.Kokai%40oneidentity.com%7Cd78813e10c6a44a214f108d7678102ee%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637091676118465862&sdata=HxgsXnssIKsdlfRlUv1abq1sYvM99MoHIsO2PWH6Pzo%3D&reserved=0<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196142860&sdata=PUTypUDUVaBIiZXrCh36n3Omv3eIDQUCx%2FV23S%2BPusI%3D&reserved=0>
> FAQ: https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=02%7C01%7CPeter.Kokai%40oneidentity.com%7Cd78813e10c6a44a214f108d7678102ee%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637091676118465862&sdata=lsm2bopdTBZcJqqc%2BfqfUrI1P2mdmftBjMSNRtzyiTo%3D&reserved=0<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196152856&sdata=9wU6GTGDrvLSGFJ%2BAg331UF0R7SClTVCe7K8efYJgXw%3D&reserved=0>
>
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng<https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196162851&sdata=5leYq8k%2FcJ%2BglgX4z5sREO49ralop4yULiVUKqkI4So%3D&reserved=0>
Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196162851&sdata=M8y6q0a1TAgsoF87sB0Wo03w8UsEcIAZXz7ghOgz%2FX8%3D&reserved=0>
FAQ: http://www.balabit.com/wiki/syslog-ng-faq<https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=02%7C01%7CLaszlo.Szemere%40oneidentity.com%7C544f359a2b1e4b718f2d08d76dd421ec%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637098630196162851&sdata=NL7vrEUVXMejkxE1kuRbwhQeB1l4uhE4t2rSYIAoRRo%3D&reserved=0>



More information about the syslog-ng mailing list