Improve JSONFormatter to match the capabilties of ContextFormatter

Bug #1564931 reported by Domonkos Tomcsanyi on 2016-04-01
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
oslo.log
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) on 2016-08-30
Changed in oslo.log:
assignee: nobody → Alexis Lee (alexisl)

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

Changed in oslo.log:
status: New → In Progress

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

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
Doug Hellmann (doug-hellmann) wrote :
Changed in oslo.log:
status: In Progress → Fix Released

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  Edit
Everyone can see this information.

Other bug subscribers