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