Univention Bugzilla – Bug 41816
Extend rsyslog logrotate template to allow a configuration per logfile
Last modified: 2016-12-07 13:48:02 CET
Created attachment 7812 [details] Compatible extended rsyslog logrotate template Please include the attached rsyslog logrotate template in the univention-base-files package. The template is compatible to the existing one but allows the configuration of logrotate options per log file or log file group in case of news and mail logs.
4.1-4: r74855 | Bug #41816 base: More fine-grained logrotate configuration for syslog 4.2-0: r74923 | Bug #41816 base: More fine-grained logrotate configuration for syslog Package: univention-base-files Version: 5.0.1-3.217.201612011627 Version: 5.0.1-4.218.201612020906 Branch: ucs_4.1-0 Scope: errata4.1-4 r74921 | Bug #15728,Bug #41815,Bug #41816: base YAML univention-base-files.yaml
settings like logrotate/syslog/rotate/count: 84 logrotate/syslog/rotate: daily seemed to be ignored now old: /var/log/syslog { daily rotate 84 create 640 root adm ... } new: /var/log/syslog { delaycompress sharedscripts postrotate invoke-rc.d rsyslog rotate > /dev/null endscript } new: ucr set logrotate/mail/rotate/count=100 /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn { delaycompress sharedscripts postrotate invoke-rc.d rsyslog rotate > /dev/null endscript }
(In reply to Felix Botner from comment #2) > settings like > > logrotate/syslog/rotate/count: 84 > logrotate/syslog/rotate: daily > > > seemed to be ignored now UCS-4.1-4: r74985 | Bug #41816 base: Rename duplicate dictionaries UCS-4.2-0: r74987 | Bug #41816 base: Rename duplicate dictionaries YAML: r74986 | Bug #41816 base: Rename duplicate dictionaries YAML Package: univention-base-files Version: 5.0.1-6.222.201612051558 Branch: ucs_4.1-0 Scope: errata4.1-4
OK - univention-base-files.yaml OK - syslog facility configuration -> ucr get logrotate/mail/rotate/count 1001 -> ucr get logrotate/news/rotate daily -> ucr get logrotate/syslog/rotate daily -> ucr get logrotate/syslog/rotate/count 84 /var/log/syslog { daily rotate 84 ... /var/log/mail.err /var/log/mail.info /var/log/mail.log /var/log/mail.warn { weekly rotate 1001 ... /var/log/news.crit /var/log/news.err /var/log/news.notice { daily rotate 12 ... OK - merged to 4.2-0
<http://errata.software-univention.de/ucs/4.1/353.html>