summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-rsyslog.tmpl
blob: f2e4d2ab2ba579fcccb939bc97083bcbc4a94273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/var/log/messages {
    create
    missingok
    nomail
    notifempty
    rotate {{ rotate }}
    size {{ max_size }}M
    postrotate
        # inform rsyslog service about rotation
        /usr/lib/rsyslog/rsyslog-rotate
    endscript
}