summaryrefslogtreecommitdiff
path: root/data/templates/rsyslog/logrotate.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/rsyslog/logrotate.j2')
-rw-r--r--data/templates/rsyslog/logrotate.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/rsyslog/logrotate.j2 b/data/templates/rsyslog/logrotate.j2
index 89d1a8a50..cc535c48f 100644
--- a/data/templates/rsyslog/logrotate.j2
+++ b/data/templates/rsyslog/logrotate.j2
@@ -1,4 +1,15 @@
### 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 }} {