[Openstack] Logging Keystone x Remote Syslog

Adam Young ayoung at redhat.com
Fri Jan 11 18:10:29 UTC 2013


On 01/11/2013 07:31 AM, Alex Vitola wrote:
> It's possible send to logs to remote server?
Logging is using the standard Python logging module:

In keystone/common/logging:

import logging
import logging.config


You should be able to configure this to use SysLog:

http://docs.python.org/2/library/logging.handlers.html#logging.handlers.SysLogHandler

Or an HTTP logger (Not necessarily recommended without reviewing the 
security implications)

http://docs.python.org/2/library/logging.handlers.html#logging.handlers.HTTPHandler

Using AMQP might make sense IAW this post.


http://notes.variogr.am/post/143623387/broadcasting-your-logs-with-rabbitmq-and-python
>
> Currently it is configured to send to the local file
>
>
> I believe it is in the file below
>
>
> /etc/keystone/logging.conf
>
> [logger_root]
> level=DEBUG
>>> handlers=file
> [handler_production]
> class=handlers.SysLogHandler
> level=ERROR
> formatter=normal_with_name
>>> args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
> [handler_file]
> class=FileHandler
> level=DEBUG
> formatter=normal_with_name
> args=('/var/log/keystone/keystone.log', 'a')
>
>
> att
>
>
> Alex Vitola
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list