summaryrefslogtreecommitdiffstats
path: root/system/mongodb/files/mongodb.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'system/mongodb/files/mongodb.logrotate')
-rw-r--r--system/mongodb/files/mongodb.logrotate13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/mongodb/files/mongodb.logrotate b/system/mongodb/files/mongodb.logrotate
new file mode 100644
index 0000000000..f95a438b5b
--- /dev/null
+++ b/system/mongodb/files/mongodb.logrotate
@@ -0,0 +1,13 @@
+# Default log rotation / compression keeps 1 year of logs.
+/var/log/mongodb/*.log {
+ daily
+ rotate 365
+ dateext
+ copytruncate
+ delaycompress
+ compress
+ notifempty
+ extension gz
+ sharedscripts
+ missingok
+}