← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1491282] [NEW] Logs from keystone python application are not reported in /var/log/keystone-all.log

 

You have been subscribed to a public bug:

Now keystone is using apache to run. Keystone applications are located
at two places:

- /usr/lib/cgi-bin/keystone/admin
- /usr/lib/cgi-bin/keystone/main


Keystone is configured to use rsyslog for logging:

=== /etc/keystone/keystone.conf ===

[...]
use_syslog = True
[...]
syslog_log_facility = LOG_USER

=======

rsyslog is configured to catch logs with "keystone" word:

root@node-3:/# cat /etc/rsyslog.d/20-keystone.conf 
# managed by puppet

:syslogtag, contains, "keystone" -/var/log/keystone-all.log
& ~


The problem is that two scripts are named "admin" and "main" so rsyslog is not able to catch logs from them because if I understand correctly they should be name "keystone-admin" for example to be catch. It is needed because in the log it is the name of the application that is used. Here is an example of such logs that is in /var/log/user.log but not in /var/log/keystone-all.log:

=== cat /var/log/user.log
[...]
Aug 28 09:00:51 node-3 admin 2015-08-28 09:00:51.735 18865 WARNING oslo_config.cfg [-] Option "admin_bind_host" from group "DEFAULT" is deprecated. Use option "admin_bind_host" from group "eventlet_server".
[...]

And that should also be reported in /var/log/keystone-all.log

** Affects: keystone
     Importance: Undecided
         Status: New


** Tags: keystone
-- 
Logs from keystone python application are not reported in /var/log/keystone-all.log
https://bugs.launchpad.net/bugs/1491282
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Keystone.