diff options
Diffstat (limited to '')
-rw-r--r-- | share/logrotate/ceph-log | 17 | ||||
-rw-r--r-- | share/logrotate/cephfs-snap | 11 |
2 files changed, 28 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 +} diff --git a/share/logrotate/cephfs-snap b/share/logrotate/cephfs-snap new file mode 100644 index 0000000..e948edf --- /dev/null +++ b/share/logrotate/cephfs-snap @@ -0,0 +1,11 @@ +/var/log/storage-tools/cephfs-snap/cephfs-snap.log { + compress + create 0640 root adm + dateext + dateformat -%Y%m + dateyesterday + missingok + monthly + notifempty + rotate 12 +} |