Bug 1287470

Summary: let rsyslog & syslog-ng play nice together: sync /etc/logrotate.d/syslog
Product: Red Hat Enterprise Linux 7 Reporter: Martin Frodl <mfrodl>
Component: rsyslogAssignee: Jiří Vymazal <jvymazal>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: extras-qa, jlieskov, jvymazal, lkundrak, mah.darade, pvrabec, rsroka, sdordevi, terje.rosten
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1269244 Environment:
Last Closed: 2017-02-03 09:51:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1269244    
Bug Blocks:    
Attachments:
Description Flags
proposed patch none

Description Martin Frodl 2015-12-02 07:46:45 UTC
Same issue encountered when upgrading to rsyslog-7.4.7-12.el7.x86_64 with syslog-ng-3.5.6-1.el7.x86_64 installed.

+++ This bug was initially created as a clone of Bug #1269244 +++

Description of problem:

syslog-ng and rsyslog both wants to install the file:
  /etc/logrotate.d/syslog

To be able to have both excellent loggers installed at the same time
this file must be identical.

Attached is a patch to change /etc/logrotate.d/syslog such that syslog-ng
also can use the file unmodified.

A followup report is sent to syslog-ng package to sync with the new version of the file.

Setup has been tested, install both rsyslog and syslog-ng is now possible, make
it very easy to switch between loggers as users may want. 
Logrotate works as before.

Please apply attached patch.

Comment 2 Jiří Vymazal 2017-01-10 13:56:23 UTC
Created attachment 1239116 [details]
proposed patch

Comment 3 Jiří Vymazal 2017-01-10 13:57:31 UTC
attached patch renames conflicting file (in the end name is not significant as main logrotate conf includes all files in /etc/logrotate.d/ ) this way concurrent existence with other syslog packages possible