Mise à jour de 'README.md'

This commit is contained in:
Christian P. MOMON 2023-02-13 11:51:14 +01:00
parent 9d63f37e33
commit b1d46f61a6

View file

@ -273,4 +273,20 @@ conf.probe.target=/srv/statoolinfos/well-known/statoolinfos/foo.bar.org-metrics.
conf.probe.httpaccesslog.pattern= 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. 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
```