diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-09 19:24:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 19:24:55 +0200 |
commit | 73ec6fd55d1881e9ca0439a993e9bda8e06d1448 (patch) | |
tree | 257f198d0ece25c420e0841cc5a4cd3135b0d85d /data/templates/rsyslog/logrotate.j2 | |
parent | 3543aecf8463d5d6328ac669c12c482ed4e1ccba (diff) | |
parent | 46d2bcdb0b500b4d1b9d973ab5b9ca3c6cf44e51 (diff) | |
download | vyos-1x-73ec6fd55d1881e9ca0439a993e9bda8e06d1448.tar.gz vyos-1x-73ec6fd55d1881e9ca0439a993e9bda8e06d1448.zip |
Merge pull request #1985 from c-po/t2778-syslog
syslog: T2778: T2769: refactoring and VRF support
Diffstat (limited to 'data/templates/rsyslog/logrotate.j2')
-rw-r--r-- | data/templates/rsyslog/logrotate.j2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data/templates/rsyslog/logrotate.j2 b/data/templates/rsyslog/logrotate.j2 new file mode 100644 index 000000000..89d1a8a50 --- /dev/null +++ b/data/templates/rsyslog/logrotate.j2 @@ -0,0 +1,16 @@ +### Autogenerated by system-syslog.py ### +{% 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 %} |