Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Logging to syslog not working

I want keystone to log to syslog, but it only seems to be sending log information to the log file instead. I figure that this may have something to do with the way the log handling is configured, but I can't figure out what I'm missing or doing wrong. Can someone please assist?

Extract of /etc/keystone/keystone.conf:

[DEFAULT] verbose = True debug = True log_config = /etc/keystone/logging.conf use_syslog = True syslog_log_facility = LOG_USER

Full content of /etc/keystone/logging.conf: [loggers] keys=root,keystone,combined

[formatters] keys=normal,normal_with_name,debug

[handlers] keys=production,file,devel

[logger_root] level=DEBUG handlers=file

[logger_keystone] level=DEBUG handlers=file qualname=keystone

[logger_combined] level=DEBUG handlers=file qualname=keystone-combined

[handler_production] class=handlers.SysLogHandler level=DEBUG formatter=normal_with_name

args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)

args=(('10.12.12.28', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)

[handler_file] class=FileHandler level=DEBUG formatter=normal_with_name args=('/var/log/keystone/keystone.log', 'w')

[handler_devel] class=StreamHandler level=DEBUG formatter=debug args=(sys.stdout,)

[formatter_normal] format=%(asctime)s %(levelname)s %(message)s

[formatter_normal_with_name] format=(%(name)s): %(asctime)s %(levelname)s %(message)s

[formatter_debug] format=(%(name)s): %(asctime)s %(levelname)s %(module)s %(funcName)s %(message)s