[Openstack-operators] [Openstack][Kesytone] Logging output modification

Alejandro Comisario alejandro.comisario at mercadolibre.com
Tue Feb 26 15:55:02 UTC 2013


Thanks ! will try this one !

*
*
*
*
*Alejandro Comisario
#melicloud CloudBuilders*
Arias 3751, Piso 7 (C1430CRG)
Ciudad de Buenos Aires - Argentina
Cel: +549(11) 15-3770-1857
Tel : +54(11) 4640-8443


On Mon, Feb 25, 2013 at 4:35 PM, Andrew Glen-Young <
andrew.glen-young at canonical.com> wrote:

> Hello,
>
> On Mon 25-02-2013 14:47 ›, Alejandro Comisario wrote:
> > Hi guys, we are using keystone 2012.1.4 into production, and we are using
> > keystone logs to stream into kafka, and we wanted to modify the logs
> > content to add the tenant id into the line.
> >
> > We saw in the code that keystone leaves that duty to the python logging
> > method.
> > We tried several methods to modify the log content, but we didnt nailed.
> >
> > Does anyone knows how to doit in essex ?
> >
>
> My guess is that if the default logging doesn't match your criteria that
> you could insert a custom middleware to do what you want.
>
> The 'access' middleware, which creates Apache-style logs, in the current
> keystone branch may give you an idea of how to achieve this.
>
> HTH
>
> --
> Regards.
> Andrew Glen-Young
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20130226/222687dd/attachment.html>


More information about the OpenStack-operators mailing list