summaryrefslogtreecommitdiffstats
path: root/share/logrotate/ceph-log
diff options
context:
space:
mode:
Diffstat (limited to 'share/logrotate/ceph-log')
-rw-r--r--share/logrotate/ceph-log17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/logrotate/ceph-log b/share/logrotate/ceph-log
new file mode 100644
index 0000000..cdf8bc7
--- /dev/null
+++ b/share/logrotate/ceph-log
@@ -0,0 +1,17 @@
+/var/log/storage-tools/ceph-log/ceph-watch.log {
+ compress
+ create 0644 root root
+ dateext
+ dateformat -%Y%m%d
+ dateyesterday
+ missingok
+ daily
+ notifempty
+ rotate 365
+ prerotate
+ service ceph-log stop > /dev/null 2>&1
+ endscript
+ postrotate
+ service ceph-log start > /dev/null 2>&1
+ endscript
+}