Mise à jour de 'README.md'
This commit is contained in:
parent
9d63f37e33
commit
b1d46f61a6
1 changed files with 17 additions and 1 deletions
18
README.md
18
README.md
|
@ -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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue