<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<div class="moz-cite-prefix">The RHEL7 packages work correctly and
do not have any conflict with rsyslog.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">The RHEL8 package is going to give me
some problems. Our syslog-ng configuration produces files
different than the default, so we have configured the logrotate
file appropriately. When the RPM update process runs the syslog-ng
package will be updated and because we do not have the rsyslog
package installed, the syslog-ng-logrotate package will be
installed.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">This process will remove my custom
/etc/logrotate.d/syslog file and create a new default
/etc/logrotate.d/syslog-ng</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">This will break by logrotate
configuration on all systems that auto-update the RPM packages.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I think the correct approach would be
to move the /etc/logrotate.d/syslog file to
/etc/logrotate.d/syslog-ng when the syslog-ng-logrotate package is
installed for the first time.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Evan.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 6/16/20 5:18 AM, Peter Czanik
(pczanik) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DM6PR19MB3596D18EC3DD40A9161E30798B9D0@DM6PR19MB3596.namprd19.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
There were multiple tickets, bug reports about logrotate
scripts in syslog-ng RPM packages for Fedora/RHEL.
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1802165"
moz-do-not-send="true">https://bugzilla.redhat.com/show_bug.cgi?id=1802165</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<a
href="https://github.com/syslog-ng/syslog-ng/issues/1384#issuecomment-644716350"
moz-do-not-send="true">https://github.com/syslog-ng/syslog-ng/issues/1384#issuecomment-644716350</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I have now a possible solution available for testing in my git
snapshot repo: <a
href="https://copr.fedorainfracloud.org/coprs/czanik/syslog-ng-githead/"
moz-do-not-send="true">
https://copr.fedorainfracloud.org/coprs/czanik/syslog-ng-githead/</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<ul>
<li>Installs the same logrotate script on RHEL/CentOS 7 as
rsyslog</li>
<li>On RHEL/CentOS 8 and Fedora the logrotate script is
called syslog-ng and uses systemctl to reload syslog-ng
after rotation, just as the rsyslog variant. It is in a
separate subpackage, and installed only when rsyslog is
not on the system (for reasons check the RH bugzilla
ticket: in short it would not be used anyway due to
conflicts)</li>
</ul>
I tested it on Fedora 32 and CentOS 7, both with and without
rsyslog on the system. It worked fine for me, but any feedback
is appreciated.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
If it is tested to work by someone else than me, I'll push the
changes both to the official EPEL package and to the syslog-ng
github repo.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Bye,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
CzP<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica,
sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:12pt; color:rgb(0,0,0)">
<div>
<div>
<div dir="ltr">Peter Czanik (CzP)
<a class="moz-txt-link-rfc2396E" href="mailto:peter.czanik@oneidentity.com"><peter.czanik@oneidentity.com></a><br>
Balabit (a OneIdentity company) / syslog-ng
upstream<br>
<a href="https://syslog-ng.com/community/"
target="_blank" moz-do-not-send="true">https://syslog-ng.com/<wbr>community/</a><br>
<a href="https://twitter.com/PCzanik"
target="_blank" moz-do-not-send="true">https://twitter.com/PCzanik</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Evan Rempel</pre>
</body>
</html>