Skip to content

Flattened JSON log output #986

@kitop

Description

@kitop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions