Recently, JSON log format was added (in #822) which outputs the JSON in this format: {"timestamp":"2026-05-19T10:40:00.330523Z","level":"ERROR","fields":{"message":"this is the message"}}. This works great, but some log processors expect the level and other fields at the top level rather than nested under fields.
I'd like a way to configure flat JSON as the output. This could be a new json_flattened log_format option or a new setting altogether.
Rust library already supports this via flatten_event, so it should be straightforward to add.
Recently, JSON log format was added (in #822) which outputs the JSON in this format:
{"timestamp":"2026-05-19T10:40:00.330523Z","level":"ERROR","fields":{"message":"this is the message"}}. This works great, but some log processors expect the level and other fields at the top level rather than nested underfields.I'd like a way to configure flat JSON as the output. This could be a new
json_flattenedlog_format option or a new setting altogether.Rust library already supports this via
flatten_event, so it should be straightforward to add.