From b1d46f61a6dc2120b72770afe7963686f3fe3d48 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 13 Feb 2023 11:51:14 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d442cf3..341c9b0 100644 --- a/README.md +++ b/README.md @@ -273,4 +273,20 @@ conf.probe.target=/srv/statoolinfos/well-known/statoolinfos/foo.bar.org-metrics. conf.probe.httpaccesslog.pattern= ``` -Warning: to have month metric values, you have to set **retention log to 7 weeks or 50 days** in nginx or Apache logrotate configuration. \ No newline at end of file +Warning: to have month metric values, you have to set **retention log to 7 weeks or 50 days** in Nginx or Apache logrotate configuration. + +Pour Nginx, éditer le fichier `/etc/logrotate.d/nginx` : +``` +/var/log/nginx/*.log { + weekly + missingok + rotate 7 +``` + +Pour Apache, éditer le fichier `/etc/logrotate.d/apache2` : +``` +/var/log/apache2/*.log { + weekly + missingok + rotate 7 +```