Project

General

Profile

Tâche #14741

eole-dhcp - Scénario #14902: évolutions DHCP

DHCP : changer la conf du logrotate

Added by Emmanuel IHRY over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
01/25/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Remaining (hours):
0.0

Description

DHCP : changer la conf du logrotate qui conserve actuellement seulement 10 semaines de logs. Passer à 52 semaines.

Associated revisions

Revision 017eae47 (diff)
Added by Thierry Jambou over 7 years ago

rajout dossier etc dans le fichier debian/eole-dhcp.install ref: #14741 @10m

Revision 3ca44f7b (diff)
Added by Thierry Jambou over 7 years ago

récupération de la dernière version du fichier eole.mk à partir de eole-skeletor Ref: #14741 @10m

History

#1 Updated by Thierry Bertrand over 7 years ago

  • Subject changed from DHCP : changer la conf du logrotate to DHCP : changer la conf du logrotate
  • Estimated time set to 1.00 h
  • Remaining (hours) set to 1.0

#2 Updated by Thierry Jambou over 7 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Thierry Jambou over 7 years ago

Dans le cadre de la mise en place de l'eSSL Wifi, l'eSSSL utilise sa fonction de serveur DHCP (en adressage statique ou dynamique selon le profil de l'utilisateur) pour permettre - entre-autres- aux agents de naviguer sur le web.

Les contraintes légales obligent à conserver les journaux d'accès à internet sur 12 mois glissants (en l'occurence les logs squid), de ce fait, il faut aussi conserver les logs d'allocation d'adresse IP par le DHCP pendant un an afin de savoir quel utilisateur avait telle adresse IP à un instant t.

Il faut donc modifier la configuration du logrotate du DHCP.

Le fichier contenant la conf du logrotate dhcp est le fichier logrotate/eole-dhcp qui contient actuellement

rotate 10
weekly

soit 10 semaines de rétention.

Ce fichier n'est pas templatisé, il suffit pour conserver les logs pendant un an de changer la valeur 10 en 52 ou plutôt 53 d'ailleurs pour être sûr de couvrir toute une année.

#4 Updated by Thierry Jambou over 7 years ago

  • % Done changed from 0 to 90
  • Remaining (hours) changed from 1.0 to 0.25

fichier eole-dhcp modifié : eole-dhcp:d3ed4ed9a8a

#5 Updated by Thierry Jambou over 7 years ago

  • Status changed from En cours to Résolu

#6 Updated by Thierry Jambou over 7 years ago

  • Assigned To set to Thierry Jambou

#7 Updated by Thierry Jambou over 7 years ago

  • Status changed from Résolu to En cours

#8 Updated by Thierry Jambou over 7 years ago

Modif effectué
Git package effectué aussi

#9 Updated by Joël Cuissinat over 7 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 90 to 100

Je valide :

root@scribe:~# dpkg -L eole-dhcp | grep logrotate
/etc/logrotate.d
/etc/logrotate.d/eole-dhcp

root@scribe:~# cat /etc/logrotate.d/eole-dhcp
/var/log/rsyslog/local/dhcpd/*.log {
   rotate 53
   weekly
   missingok
   compress
   postrotate
      reload rsyslog >/dev/null
   endscript
}

#10 Updated by Joël Cuissinat over 7 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

#11 Updated by Thierry Bertrand over 7 years ago

  • Parent task changed from #14734 to #14902

Also available in: Atom PDF