Project

General

Profile

Tâche #6367

Distribution EOLE - Scénario #12044: Utiliser l'année dans le format de journalisation

Le format de log est toujours celui utilisé en 2.3 et manque de précision.

Added by Benjamin Bohard over 7 years ago. Updated almost 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
06/23/2015
Due date:
% Done:

100%

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

Description

En 2.3, le format de log utilisé par rsyslog est RSYSLOG_TraditionalFileFormat :

Oct 10 17:49:24 testscribe24 zephiragents: [-] #011    for service in self.last_measure.value['services']:

<9>1 2013-10-11T10:55:19.412509+02:00 testscribe24 zephiragents  - -  [-]     status = serv_agent.last_measure.value['services'][0]['status']

Associated revisions

Revision 1df54dc7 (diff)
Added by Daniel Dehennin almost 6 years ago

Utiliser un format de log avec une date complète

  • tmpl/rsyslog.conf: Ne plus utiliser le format
    RSYSLOG_TraditionalFileFormat.

Ref: #6367

History

#1 Updated by Joël Cuissinat almost 7 years ago

  • Assigned To deleted (Joël Cuissinat)
  • Parent task set to #8550

#2 Updated by Joël Cuissinat almost 6 years ago

  • Estimated time set to 4.00 h
  • Parent task changed from #8550 to #12044
  • Remaining (hours) set to 4.0
  • Distribution changed from EOLE 2.4 to EOLE 2.5

#3 Updated by Scrum Master almost 6 years ago

  • Status changed from Nouveau to En cours
  • Start date set to 06/23/2015

#4 Updated by Daniel Dehennin almost 6 years ago

  • Assigned To set to Daniel Dehennin

#5 Updated by Daniel Dehennin almost 6 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 4.0 to 0.1

Paquet 2.5.0_4-19

#6 Updated by Scrum Master almost 6 years ago

  • Status changed from En cours to Résolu

#7 Updated by Joël Cuissinat almost 6 years ago

Testé sur Horus 2.5.0 avec eole-server 2.5.0~4-19 :

root@horus:~# tail -fn2 /var/log/rsyslog/local/zephiragents/zephiragents.*.log*
==> /var/log/rsyslog/local/zephiragents/zephiragents.alert.log <==
2015-06-24T11:36:06.226678+02:00 horus.etb1.lan zephiragents: [-] #011    for service in self.last_measure.value['services']:
2015-06-24T11:36:06.226728+02:00 horus.etb1.lan zephiragents: [-] #011exceptions.TypeError: 'NoneType' object has no attribute '__getitem__'

==> /var/log/rsyslog/local/zephiragents/zephiragents.info.log <==
2015-06-24T11:36:06.221328+02:00 horus.etb1.lan zephiragents: [-] got stderr: '/usr/lib/nagios/plugins/check_bacula: error while loading shared libraries: libbac-5.2.5.so: cannot open shared object file: No such file or directory\n'
2015-06-24T11:36:31.711225+02:00 horus.etb1.lan zephiragents: [-] /!\ Agent baculaservices, exception during measure: 'NoneType' object has no attribute '__getitem__' (ligne 332)

#8 Updated by Joël Cuissinat almost 6 years ago

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

Also available in: Atom PDF