Merge lp:~timkuhlman/charms/trusty/rsyslog-forwarder-ha/no-duplicate-kern into lp:charms/trusty/rsyslog-forwarder-ha

Proposed by Tim Kuhlman
Status: Merged
Approved by: Joel Sing
Approved revision: 17
Merged at revision: 17
Proposed branch: lp:~timkuhlman/charms/trusty/rsyslog-forwarder-ha/no-duplicate-kern
Merge into: lp:charms/trusty/rsyslog-forwarder-ha
Diff against target: 32 lines (+4/-3)
2 files modified
hooks/hooks.py (+2/-2)
templates/keep_local.template (+2/-1)
To merge this branch: bzr merge lp:~timkuhlman/charms/trusty/rsyslog-forwarder-ha/no-duplicate-kern
Reviewer Review Type Date Requested Status
Review Queue (community) automated testing Approve
Paul Gear Pending
Canonical IS Delta Pending
charmers Pending
Review via email: mp+303959@code.launchpad.net

Description of the change

When logs are kept locally kernel messages are being duplicated to syslog and messages files as well as to kern.log. This change makes it so they only go to kern.log

To post a comment you must log in.
Revision history for this message
Joel Sing (jsing) :
Revision history for this message
Review Queue (review-queue) wrote :

The results (PASS) are in and available here: http://juju-ci.vapour.ws/job/charm-bundle-test-lxc/5344/

review: Approve (automated testing)
Revision history for this message
Review Queue (review-queue) wrote :

The results (PASS) are in and available here: http://juju-ci.vapour.ws/job/charm-bundle-test-aws/5448/

review: Approve (automated testing)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hooks/hooks.py'
--- hooks/hooks.py 2016-06-06 17:09:07 +0000
+++ hooks/hooks.py 2016-08-25 16:07:08 +0000
@@ -52,10 +52,10 @@
52]52]
5353
5454
55IMFILE_FILE = '/etc/rsyslog.d/75-rsyslog-imfile.conf'55IMFILE_FILE = '/etc/rsyslog.d/40-rsyslog-imfile.conf'
56LOGS_TEMPLATE = 'keep_local.template'56LOGS_TEMPLATE = 'keep_local.template'
57LOGS_SYSTEM_FILE = '/etc/rsyslog.d/50-default.conf'57LOGS_SYSTEM_FILE = '/etc/rsyslog.d/50-default.conf'
58REPLICATION_FILE = '/etc/rsyslog.d/80-rsyslog-replication.conf'58REPLICATION_FILE = '/etc/rsyslog.d/45-rsyslog-replication.conf'
5959
6060
61hooks = Hooks()61hooks = Hooks()
6262
=== modified file 'templates/keep_local.template'
--- templates/keep_local.template 2014-04-25 22:18:46 +0000
+++ templates/keep_local.template 2016-08-25 16:07:08 +0000
@@ -1,9 +1,10 @@
1# Some defaults1# Some defaults
2auth,authpriv.* /var/log/auth.log2auth,authpriv.* /var/log/auth.log
3kern.* -/var/log/kern.log
4& ~
3*.*;auth,authpriv.none -/var/log/syslog5*.*;auth,authpriv.none -/var/log/syslog
4cron.* /var/log/cron.log6cron.* /var/log/cron.log
5daemon.* -/var/log/daemon.log7daemon.* -/var/log/daemon.log
6kern.* -/var/log/kern.log
7lpr.* -/var/log/lpr.log8lpr.* -/var/log/lpr.log
8mail.* -/var/log/mail.log9mail.* -/var/log/mail.log
9user.* -/var/log/user.log10user.* -/var/log/user.log

Subscribers

People subscribed via source and target branches