Project

General

Profile

Tâche #22581

Scénario #22741: Traitement express MEN (05-07)

Après le "rotate" creoled continue de remplir le fichier "rotaté" (observé sur EOLE 2.5)

Added by Emmanuel GARETTE almost 6 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Start date:
12/28/2017
Due date:
% Done:

100%

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

Description

root@eolebase:~# ls -alh /var/log/creoled.log
-rw-r--r-- 1 root root 0 déc.  28 06:47 /var/log/creoled.log
root@eolebase:~# ls -alh /var/log/creoled.log-20171228 
-rw-r--r-- 1 root root 128K déc.  28 08:40 /var/log/creoled.log-20171228

Associated revisions

Revision ee01ee2f (diff)
Added by Fabrice Barconnière over 5 years ago

creole still use rotated log

ref #22581

Revision 0a77280e (diff)
Added by Fabrice Barconnière over 5 years ago

creole still use rotated log

ref #22581

Revision 7de0d02e (diff)
Added by Fabrice Barconnière over 5 years ago

creole still use rotated log

ref #22581

History

#1 Updated by Fabrice Barconnière over 5 years ago

  • Parent task set to #22741

Un copytruncate avec un rsyslog rotate devrait suffire dans le logrotate de creole.
À tester.

#2 Updated by Fabrice Barconnière over 5 years ago

  • Estimated time set to 3.00 h
  • Remaining (hours) set to 3.0

#3 Updated by Fabrice Barconnière over 5 years ago

  • Project changed from creole to Distribution EOLE
  • Status changed from Nouveau to En cours

#4 Updated by Fabrice Barconnière over 5 years ago

  • Assigned To set to Fabrice Barconnière

#5 Updated by Fabrice Barconnière over 5 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 3.0 to 0.5
  • Correctif fait pour 2.5.2, 2.6.0, 2.6.1, 2.6.2
  • Journaux alimentés
  • Testé sur les 4 versions (logs dans /var/log/creole* en 2.5.2):
    root@eolebase:~# ls -rtl /var/log/rsyslog/local/creoled/
    total 8
    -rw-r----- 1 syslog adm 7808 janv. 30 11:40 creoled.info.log
    
    root@eolebase:~# logrotate -f /etc/logrotate.conf
    
    root@eolebase:~# ls -rtl /var/log/rsyslog/local/creoled/
    total 8
    -rw-r----- 1 syslog adm 7808 janv. 30 11:41 creoled.info.log-20180130
    -rw-r----- 1 syslog adm    0 janv. 30 11:41 creoled.info.log
    
    root@eolebase:~# CreoleGet --list > /dev/null
    
    root@eolebase:~# ls -rtl /var/log/rsyslog/local/creoled/
    total 12
    -rw-r----- 1 syslog adm 7808 janv. 30 11:41 creoled.info.log-20180130
    -rw-r----- 1 syslog adm  160 janv. 30 11:41 creoled.info.log
    
  • creoled.info.log-20180130 garde la même taille
  • creoled.info.log est bien alimenté

#6 Updated by Emmanuel GARETTE over 5 years ago

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

Sur Scribe 2.5.2 :

  • dans une console :
root@scribe:~# while true; do CreoleGet adresse_ip_eth0; done
  • sur la 2eme console :
root@scribe:~# logrotate -f /etc/logrotate.conf 
root@scribe:~# wc -l /var/log/creoled.log
150 /var/log/creoled.log

Also available in: Atom PDF