[syslog-ng] syntax error when using syslog-ng.conf from debian packaging
Laszlo Szemere (lszemere)
Laszlo.Szemere at oneidentity.com
Tue Nov 12 15:23:42 UTC 2019
Hello,
`tty10` (notice that these are back ticks!) means the string behind the environment variable named tty10.
Since syslog-ng is complaining about an unexpected closing bracelet, the most likely scenario is that tty10 was not defined in that environment, and it was evaluated to an empty string.
I have found several issues relating to this. So it would be really helpful if you can share the following details:
- distribution and version of your system
- the source of the installed packages
- the version of the installed packages
- your modification (if there is any) in the config
- the command you executed
Best regards,
Laci
________________________________________
From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Alexandre Santos <alexandre.rosas.santos at gmail.com>
Sent: Tuesday, November 12, 2019 15:59
To: Syslog-ng users' and developers' mailing list
Subject: [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,
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
More information about the syslog-ng
mailing list