Improve JSONFormatter to match the capabilties of ContextFormatter

Bug #1564931 reported by Domonkos Tomcsanyi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.log
Fix Released
Undecided
Saverio Proto

Bug Description

Currently JSONFormatter doesn't output as many useful information as ContextFormatter. Missing information include for example request_id or instance_id. If one would like to use for example the standard Python logging library's DatagramHandler to ship logs to Logstash it would be desirable to have them already in JSON format, but also to have them including all the context information possible. It'd make drilling down on specific issues a lot easier (following a request by its ID via Kibana for example).
So it would be great if oslo_log.formatters.JSONFormatter would become as "smart" as ContextFormatter.

thank you.

Alexis Lee (alexisl)
Changed in oslo.log:
assignee: nobody → Alexis Lee (alexisl)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.log (master)

Fix proposed to branch: master
Review: https://review.openstack.org/367514

Changed in oslo.log:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.log (master)

Change abandoned by Alexis Lee (<email address hidden>) on branch: master
Review: https://review.openstack.org/367514

Changed in oslo.log:
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.log (master)

Fix proposed to branch: master
Review: https://review.openstack.org/536149

Changed in oslo.log:
assignee: Alexis Lee (alexisl) → Saverio Proto (zioproto)
status: New → In Progress
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :
Changed in oslo.log:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on oslo.log (master)

Change abandoned by Saverio Proto (<email address hidden>) on branch: master
Review: https://review.openstack.org/536149
Reason: Fixed in commit 1b012d0fc6811f00e032e52ed586fe37e157584d

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.