Skip to content

Commit

Permalink
Disable rsyslog duplication of systemd-journal
Browse files Browse the repository at this point in the history
By default systemd-journal is non-persistent and rsyslog is configured
to copy everything from the journal to `/var/log/syslog`.

If you have a `/var/log/journal/` directory on persistent storage then
systemd-journal will automatically persist journal files but rsyslog
doesn't also automatically disable copying to syslog
  • Loading branch information
agrare committed Nov 13, 2023
1 parent 2cd4f35 commit d952152
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpm_spec/subpackages/manageiq-appliance
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ if systemctl is-active --quiet evm-failover-monitor; then
systemctl restart evm-failover-monitor
fi

# Disable rsyslog duplicating systemd-journal output
# This will comment out the multi-line module load from /etc/rsyslog.conf
sed -i '/module(load="imjournal"/, /StateFile="imjournal.state")/ s|^|#|' %{_sysconfdir}/rsyslog.conf

%files appliance
%defattr(-,root,root,-)
%{_sysconfdir}/httpd/conf.d/manageiq-*
Expand Down

0 comments on commit d952152

Please sign in to comment.