#550076 Fwd: Cause of error in syslog-ng.conf not comprehensible

#550076#5
Date:
2009-10-07 12:40:18 UTC
From:
To:
Since i upgraded my syslog-ng service version 2.0.0-1etch1 to 2.0.9-4.1
(Lenny), my log refer to each reload of the service, error messages under the
form "syslog-ng[]: Internal error, duplicate configuration elements refer to
the same persistent config; name='affile_dd_writers(/var/log/hosts/$HOST.log)'".

I can not find the source of the error in my conf, especially since I have not
changed anything in it. Conf tests with "syslog-ng-sv" do not return any
error and i searched in the doc of Syslog-NG (balabit.com), with google and
various other forums. This same behavior occurs on each of my servers (x3)
using syslog-ng.

Do you have an idea or it may come ? your help will be very useful.

I follow to you the conf syslog-ng (syslog-ng.conf) one of my servers.

I am using Debian GNU/Linux 5.0, kernel 2.6.26-2-686 and libc6 2.7-18.

#550076#10
Date:
2011-10-06 14:07:59 UTC
From:
To:
user algernon@madhouse-project.org
usertag syslog-ng-bug-triage
thanks

The reason for the error message is that the config uses the exact same
template for multiple destinations, and the state of destinations are
stored by filename in the persist file.

Since they all have the same template, they'll all conflict. At least,
that's my wild guess at the moment.

I still need to double check with a recent syslog-ng, to see if the
problem can be reproduced, and if so, how the message can be
improved. Once done, I'll forward it upstream.