From 900390605ec613ddda0578915db779e604c9e4ac Mon Sep 17 00:00:00 2001 From: POPO Toto Date: Wed, 20 Oct 2021 09:25:03 +0200 Subject: [PATCH] Rotation des logs --- SDIS29/syslog/logrotate.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 SDIS29/syslog/logrotate.conf diff --git a/SDIS29/syslog/logrotate.conf b/SDIS29/syslog/logrotate.conf new file mode 100644 index 0000000..521fada --- /dev/null +++ b/SDIS29/syslog/logrotate.conf @@ -0,0 +1,23 @@ +# see "man logrotate" for details + +# global options do not affect preceding include directives + +# rotate log files weekly +weekly + +# keep 4 weeks worth of backlogs +rotate 4 + +# create new (empty) log files after rotating old ones +create + +# use date as a suffix of the rotated file +#dateext + +# uncomment this if you want your log files compressed +compress + +# packages drop log rotation information into this directory +include /etc/logrotate.d + +# system-specific logs may also be configured here.