summaryrefslogtreecommitdiff
path: root/data/templates/rsyslog/logrotate.j2
blob: cc535c48fdc322f6cf16dd6cfa319af4a1bc3dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
### Autogenerated by system-syslog.py ###
/var/log/messages {
  missingok
  notifempty
  create
  rotate 5
  size=256k
  postrotate
    invoke-rc.d rsyslog rotate > /dev/null
  endscript
}

{% 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
  postrotate
    invoke-rc.d rsyslog rotate > /dev/null
  endscript
}

{%     endfor %}
{% endif %}