Bug 1331836

Summary: [RFE] Adjust logging to not have logs go to two places on disk
Product: Red Hat OpenStack Reporter: David Juran <djuran>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED WONTFIX QA Contact: Shai Revivo <srevivo>
Severity: low Docs Contact:
Priority: low    
Version: 8.0 (Liberty)CC: aschultz, jcoufal, mburns, pkilambi, pportant, rhel-osp-director-maint
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-25 10:02:45 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:

Description David Juran 2016-04-29 18:13:34 UTC
Description of problem:
instack-undercloud sets up journald to log to persistent storage. At the same time does the default rsyslog configuration also log to (the same) persistent storage. This seem rather wasteful...

Version-Release number of selected component (if applicable):
instack-undercloud-2.2.7-2.el7ost

Comment 2 Peter Portante 2016-04-29 18:45:23 UTC
By default, systemd's journal logs to /run/log/journal if /var/log/journal does not exist (default auto setting). See https://www.freedesktop.org/software/systemd/man/journald.conf.html#Storage= for the "auto" option, the default.

RHEL assumes that rsyslog is going to persist logs to storage.

So if we want to persist logs to disk via journal, we should probably remote rsyslog entirely, or change it so that rsyslog is not logging to disk, just sending off-host to a central log server.