summaryrefslogtreecommitdiffstats
path: root/server/setup/05-service-settings/etc/logrotate.conf
diff options
context:
space:
mode:
Diffstat (limited to 'server/setup/05-service-settings/etc/logrotate.conf')
-rw-r--r--server/setup/05-service-settings/etc/logrotate.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/server/setup/05-service-settings/etc/logrotate.conf b/server/setup/05-service-settings/etc/logrotate.conf
new file mode 100644
index 0000000..3860fd4
--- /dev/null
+++ b/server/setup/05-service-settings/etc/logrotate.conf
@@ -0,0 +1,32 @@
+# see "man logrotate" for details
+# rotate log files weekly
+weekly
+
+# keep 48 weeks (a year) worth of backlogs
+rotate 48
+
+# create new (empty) log files after rotating old ones
+create
+
+# uncomment this if you want your log files compressed
+compress
+
+# packages drop log rotation information into this directory
+include /etc/logrotate.d
+
+# no packages own wtmp, or btmp -- we'll rotate them here
+/var/log/wtmp {
+ missingok
+ monthly
+ create 0664 root utmp
+ rotate 1
+}
+
+/var/log/btmp {
+ missingok
+ monthly
+ create 0660 root utmp
+ rotate 1
+}
+
+# system-specific logs may be configured here