summaryrefslogtreecommitdiff
path: root/data/templates/rsyslog/logrotate.j2
blob: b9689a1cf20ea308898473134b2dd53bc5d7b44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
### Autogenerated by system_syslog.py ###
/var/log/messages {
  missingok
  notifempty
  create
  rotate 5
  size=256k
}

{% if file is vyos_defined %}
{%     for file_name, file_options in file.items() %}
/var/log/user/{{ file_name }} {
  missingok
  notifempty
  create
  rotate {{ file_options.archive.file }}
  size={{ file_options.archive.size | int // 1024 }}k
}

{%     endfor %}
{% endif %}