summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-rsyslog.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/logs/logrotate/vyos-rsyslog.tmpl')
-rw-r--r--data/templates/logs/logrotate/vyos-rsyslog.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/logs/logrotate/vyos-rsyslog.tmpl b/data/templates/logs/logrotate/vyos-rsyslog.tmpl
new file mode 100644
index 000000000..f2e4d2ab2
--- /dev/null
+++ b/data/templates/logs/logrotate/vyos-rsyslog.tmpl
@@ -0,0 +1,13 @@
+/var/log/messages {
+ create
+ missingok
+ nomail
+ notifempty
+ rotate {{ rotate }}
+ size {{ max_size }}M
+ postrotate
+ # inform rsyslog service about rotation
+ /usr/lib/rsyslog/rsyslog-rotate
+ endscript
+}
+