Skip to content

Log4j : not able to get AWSRequestId in JsonLayout #101

@dhwanikaneria

Description

@dhwanikaneria

I tried every possible way to get AWSRequestId in JSON Layout.
Example:
1.

 <JsonLayout>
 <KeyValuePair key="AWSRequestId" value="%X{AWSRequestId}"/>
</JsonLayout>

<KeyValuePair key="AWSRequestId" value="${X:AWSRequestId}"/>

It would be great, if you show me correct way to get AWSRequestId.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions