Bug 41816 - Extend rsyslog logrotate template to allow a configuration per logfile
Extend rsyslog logrotate template to allow a configuration per logfile
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: univention-base-files
UCS 3.2
Other Linux
: P5 enhancement (vote)
: UCS 4.1-4-errata
Assigned To: Philipp Hahn
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-07-18 15:02 CEST by Ingo Sieverdingbeck
Modified: 2016-12-07 13:48 CET (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.046
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Forked for project
Max CVSS v3 score:
sieverdingbeck: Patch_Available+


Attachments
Compatible extended rsyslog logrotate template (1.83 KB, text/plain)
2016-07-18 15:02 CEST, Ingo Sieverdingbeck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ingo Sieverdingbeck univentionstaff 2016-07-18 15:02:00 CEST
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.
Comment 1 Philipp Hahn univentionstaff 2016-12-02 10:04:53 CET
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
Comment 2 Felix Botner univentionstaff 2016-12-05 15:36:39 CET
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
}
Comment 3 Philipp Hahn univentionstaff 2016-12-05 16:01:08 CET
(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
Comment 4 Felix Botner univentionstaff 2016-12-05 16:43:02 CET
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
Comment 5 Janek Walkenhorst univentionstaff 2016-12-07 13:48:02 CET
<http://errata.software-univention.de/ucs/4.1/353.html>