Feature #1658

Support for syslog facilities

Added by Ruben S. Montero over 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:11/16/2012
Priority:NormalDue date:
Assignee:Jaime Melis% Done:

0%

Category:-
Target version:Release 4.0
Resolution:fixed Pull request:

Description

Add a new logger for the OpenNebula core so VM log events can be stored and queried from a syslog server.

Associated revisions

Revision 2e487cdb
Added by Jaime Melis over 8 years ago

Feature #1658: Enable syslog for oned.log
- LOG_SYSTEM in oned.conf
- SysLog class

Revision 32f8098f
Added by Jaime Melis over 8 years ago

Feature #1658: Add SysLogResource class and refactor

Revision 50160c50
Added by Jaime Melis over 8 years ago

feature #1658: Move DEBUG_LEVEL and LOG_SYSTEM to the LOG section in oned.conf

Revision d506f71f
Added by Jaime Melis over 8 years ago

feature #1658: register the default confuguration of oned.conf

Revision b4c48b06
Added by Jaime Melis over 8 years ago

feature #1658: Apply proper format to the logger

Revision 7217b53c
Added by Jaime Melis over 8 years ago

feature #1658: the syslog label is now a parameter for the syslog init method and it's not hardcoded inside of it

Revision 4855ade6
Added by Jaime Melis over 8 years ago

feature #1658: enable syslog for the scheduler

Revision d3b79071
Added by Jaime Melis over 8 years ago

Feature #1658: split log messages with newlines into separate messages and log them

Revision b924b8c8
Added by Ruben S. Montero over 8 years ago

feature #1658: Moved init methods to constructors (static). Make use of log system enums for type cheking. Use the same LOG variables as oned for scheduler.

History

#1 Updated by Simon Boulet over 8 years ago

I would suggest looking into the Log4cpp library. It's flexible and available on most distributions. You could write a custom log Appender to mimic the current OpenNebula log, while easily allowing anyone to substitute that appender for their own should they wish to send logs somewhere else (ex. I use Log4cpp to send logs to Loggly).

#2 Updated by Ruben S. Montero over 8 years ago

Hi Simon,

It seems the way to go!!. I agree that using this library and given the log classes in OpenNebula should be fairly easy to add this...

Thank you very much for the pointer

Simon Boulet wrote:

I would suggest looking into the Log4cpp library. It's flexible and available on most distributions. You could write a custom log Appender to mimic the current OpenNebula log, while easily allowing anyone to substitute that appender for their own should they wish to send logs somewhere else (ex. I use Log4cpp to send logs to Loggly).

#3 Updated by Ruben S. Montero over 8 years ago

  • Assignee set to Jaime Melis

#4 Updated by Ruben S. Montero about 8 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF