[syslog-ng] request for testing: logrotate scripts in Fedora/RHEL packages

Peter Czanik (pczanik) Peter.Czanik at oneidentity.com
Mon Jun 22 15:17:41 UTC 2020


Fedora already changed to a name-based logrotate, so rsyslog has /etc/logrotate.d/rsyslog. That's how the /etc/logrotate.d/syslog-ng naming was born.

Not tested, but I just got the idea: for RHEL 8 keep the syslog-ng logroate file called as /etc/logrotate.d/syslog. It is fugly, another exception in the spec file. But it resolves your problem, and hopefully does not cause much problems for others.

Personally I prefer to do the renaming to /etc/logrotate.d/syslog-ng as soon as possible (it will definitely be renamed with RHEL 9 in a few years), but what others think?


Peter Czanik (CzP) <peter.czanik at oneidentity.com>
Balabit (a OneIdentity company) / syslog-ng upstream

From: syslog-ng <syslog-ng-bounces at lists.balabit.hu> on behalf of Evan Rempel <erempel at uvic.ca>
Sent: Tuesday, June 16, 2020 16:39
To: syslog-ng at lists.balabit.hu <syslog-ng at lists.balabit.hu>
Subject: Re: [syslog-ng] request for testing: logrotate scripts in Fedora/RHEL packages

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.

The %config(no-replace) does not work for a file that does not yet
exist. The difficulty here is that the logrotate file name is changing from




With the current packaging I would have to "configure" all of my hosts
with the new configuration file BEFORE the syslog-ng package gets
updated. It's doable, but not desirable.


On 6/16/20 7:31 AM, Fabien Wernli wrote:
> On Tue, Jun 16, 2020 at 07:29:24AM -0700, Evan Rempel wrote:
>> This process will remove my custom /etc/logrotate.d/syslog file and create a
>> new default /etc/logrotate.d/syslog-ng
> IIRC you can configure the specfile to not overwrite config files with a %
> directive, something like %config(no-replace) or similar
Member info: https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=02%7C01%7CPeter.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&sdata=iNnlY5hMR8LTf5H9R1C5SFxs9CNojqszPYFrTemAw4Y%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.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&sdata=B7jzlQxBsIyK%2Bw1bBRl%2FE2nPG02YgW%2BSPLieENhnSw4%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.Czanik%40oneidentity.com%7C82080983250a4bdc46e108d812032891%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637279152064315728&sdata=dv3nIRUp5tZyaYFIqNRfZiavAoT6dxkSj%2FFs%2FRZk3HQ%3D&reserved=0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20200622/4e3d83bb/attachment.html>

More information about the syslog-ng mailing list