This patch introduces support for logging in JSON format (via new --log-json flag), and also changes the request logging to be properly structured.
This allows for easier diagnosis when there is an issue in production, as we can parse the fields out into Elasticsearch (or other log processing tools) and filter on them.
Description
GitLab SRE here. :)
This patch introduces support for logging in JSON format (via new
--log-json
flag), and also changes the request logging to be properly structured.This allows for easier diagnosis when there is an issue in production, as we can parse the fields out into Elasticsearch (or other log processing tools) and filter on them.
Before:
After:
There's still room for improvement wrt nested maps, but this is already a lot more machine friendly.
Checklist