adminsys:gestion-logs
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| adminsys:gestion-logs [2018/01/04 21:57] – [Services] cecile | adminsys:gestion-logs [2018/01/04 22:26] (Version actuelle) – cecile | ||
|---|---|---|---|
| Ligne 41: | Ligne 41: | ||
| </ | </ | ||
| - | **Proposition** : configurer pour conserver 2 semaines et recréer les fichiers à chaque fois | + | **Proposition** : configurer pour conserver 2 semaines et recréer les fichiers à chaque fois pour tous les logs |
| < | < | ||
| + | # see "man logrotate" | ||
| # rotate log files weekly | # rotate log files weekly | ||
| weekly | weekly | ||
| Ligne 51: | Ligne 52: | ||
| # create new (empty) log files after rotating old ones | # create new (empty) log files after rotating old ones | ||
| create | create | ||
| + | |||
| + | # uncomment this if you want your log files compressed | ||
| + | #compress | ||
| + | |||
| + | # packages drop log rotation information into this directory | ||
| + | include / | ||
| + | |||
| + | # no packages own wtmp, or btmp -- we'll rotate them here | ||
| + | / | ||
| + | missingok | ||
| + | monthly | ||
| + | create 0664 root utmp | ||
| + | rotate 1 | ||
| + | } | ||
| + | |||
| + | / | ||
| + | missingok | ||
| + | monthly | ||
| + | create 0660 root utmp | ||
| + | rotate 1 | ||
| + | } | ||
| + | |||
| + | # system-specific logs may be configured here | ||
| </ | </ | ||
| - | **ou** : configurer uniquement | + | **ou** : configurer uniquement la rotation toutes les deux semaines |
| < | < | ||
| - | /var/log/messages | + | # see "man logrotate" |
| + | # rotate log files weekly | ||
| + | weekly | ||
| + | |||
| + | # keep 4 weeks worth of backlogs | ||
| + | rotate 4 | ||
| + | |||
| + | # create new (empty) log files after rotating old ones | ||
| + | create | ||
| + | |||
| + | # uncomment this if you want your log files compressed | ||
| + | #compress | ||
| + | |||
| + | # packages drop log rotation information into this directory | ||
| + | include / | ||
| + | |||
| + | # no packages own wtmp, or btmp -- we'll rotate them here | ||
| + | /var/log/wtmp { | ||
| + | missingok | ||
| + | monthly | ||
| + | create 0664 root utmp | ||
| + | rotate 1 | ||
| + | } | ||
| + | |||
| + | / | ||
| + | missingok | ||
| + | monthly | ||
| + | create 0660 root utmp | ||
| + | rotate 1 | ||
| + | } | ||
| + | |||
| + | # system-specific logs may be configured here | ||
| + | / | ||
| + | # | ||
| | | ||
| | | ||
| | | ||
| + | # | ||
| / | / | ||
| | | ||
| Ligne 68: | Ligne 126: | ||
| https:// | https:// | ||
| - | |||
| - | https:// | ||
| https:// | https:// | ||
| http:// | http:// | ||
adminsys/gestion-logs.1515103079.txt.gz · Dernière modification : 2018/01/04 21:57 de cecile
