summaryrefslogtreecommitdiff
path: root/data/templates/logs/logrotate/vyos-rsyslog.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/logs/logrotate/vyos-rsyslog.j2')
-rw-r--r--data/templates/logs/logrotate/vyos-rsyslog.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/logs/logrotate/vyos-rsyslog.j2 b/data/templates/logs/logrotate/vyos-rsyslog.j2
new file mode 100644
index 0000000..f2e4d2a
--- /dev/null
+++ b/data/templates/logs/logrotate/vyos-rsyslog.j2
@@ -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
+}
+