Discussion:
newsyslog.conf and included confs, second reference to logfile being ignored
Aleksandr Miroslav
2021-04-07 01:18:10 UTC
Permalink
In my /etc/newsyslog.conf I have the following lines:

/var/log/maillog 640 7 * @T00 JC
[...]
<include> /usr/local/etc/newsyslog.conf.d/*

These are standard entries, set by the OS on release.

In /usr/local/etc/newsyslog.conf.d, I have a conf file that is placed there
by Ansible, that says this:

/var/log/maillog 644 50 * $M1D0 JC

It looks like newsyslog sees the standard entry for the maillog and uses
that, instead of the one I installed in the included conf file.

I would have assumed the included conf file would have taken precedence,
but I guess not.

I would like to have just installed this extra conf file and not touch the
system installed file.

Is the only way around this problem to replace /etc/newsyslog.conf
entirely? Or move the include to the beginning in that file?

Alex

Loading...