-
Notifications
You must be signed in to change notification settings - Fork 0
Log Management
hamar edited this page Nov 17, 2011
·
1 revision
A daily task for DIRAC administrators is to check than everything is working properly. DIRAC offer different ways to accomplish this task:
- Log Error Console
- DIRAC system logs
- Agent
The log levels can be expressed as:
Log Level Description DEBUG The DEBUG Level is a fine-grained event used to debug the service or agent INFO The INFO Level is a coarse-grained event used to show application process WARN The WARN Level show warns about future possible errors in the service or agent ERROR The ERROR Level show errors occurred, the services or agents can still run FATAL The FATAL Level show errors than makes service or agent stop
A console is available through DIRAC Web Portal, following the links:
Systems -> Error ConsoleIn the left panel appears the options to select the dates between the errors must be checked, in the right panel the
Component, the error associated and the number of times will appear.
More information about error console can be found _here:http://diracgrid.org/files/docs/UserGuide/WebPortalReference/ErrorConsole/index.html?highlight=log%20levels
The logs from all the services and agents can be checked in:
$DIRAC/startup/<system_name>_<service_name>/log/currentFor example, run the following line as user dirac in the server:
tail -f /vo/dirac/pro/startup/WorkloadManagement_TaskQueueDirector/log/currentThe logs in real time are going to be showed in your terminal.:
tail -f WorkloadManagement_TaskQueueDirector/log/current 2011-11-13 12:25:32 UTC WorkloadManagement/TaskQueueDirector/MySQL DEBUG: _query: Total 15 records returned 2011-11-13 12:25:32 UTC WorkloadManagement/TaskQueueDirector/MySQL DEBUG: _query: (('EELA.UFCG.br',), ('EELA.UFRJ.br',), ('EELA.UTFSM.cl',), ('EELA.UNIANDES.co',), ('EELA.CIEMAT.es',), ('EELA.INFN.it',), ('EELA.UP.pt',), ('EELA.ULA.ve',), ('EELA.UNAM.mx',), ('EELA.UM.pt',)) ... 2011-11-13 12:25:32 UTC WorkloadManagement/TaskQueueDirector/gLitePilotDirector VERB: Site Mask: EELA.UFCG.br, EELA.UFRJ.br, EELA.UTFSM.cl, EELA.UNIANDES.co, EELA.CIEMAT.es, EELA.INFN.it, EELA.UP.pt, EELA.ULA.ve, EELA.UNAM.mx, EELA.UM.pt, EELA.CEFET.br, EELA.IEETA.pt, EELA.UNLP.ar, EELA.TDC.ie, EELA.UNICAN.es 2011-11-13 12:25:32 UTC WorkloadManagement/TaskQueueDirector/gLitePilotDirector INFO: Site Candidates for TaskQueue 156: EELA.CEFET.br
This agent is in charge to check the logs and send notifications containing top 10 errors during the week to the administrator.