Skip to content

Add option for logging in json format #2491

@gamer22026

Description

@gamer22026

Feature Request

Add the option for all the stack components to log in JSON format

What problem are you trying to solve?

In trying to do log normalization across our stack, disparate logging formats cause extra work on the parsing end. Having all logging in JSON greatly simplifies the need to parse logs into a common format.

How should the problem be solved?

ENV variable to enable logging in JSON format. Should be a non-default option as there may be performance penalties enabling it.

Any alternatives you've considered?

Current way to is parse log formats to a normalized format at the receiving end (logstash in my case), which involves thing like rename fields to a common format such as severity for instance, and making sure this field value is also common, such as "error" instead of "ERR!" (which is used by the linkerd-proxy)

How would users interact with this feature?

Log normalization makes searching (in our case using the ELK stack) easier and more consistent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions