Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log4j-layout-template-json Add support to Compact Log Event Format #3207

Open
amosshi opened this issue Nov 15, 2024 · 3 comments
Open

log4j-layout-template-json Add support to Compact Log Event Format #3207

amosshi opened this issue Nov 15, 2024 · 3 comments
Labels
enhancement Additions or updates to features layouts Affects one or more Layout plugins waiting-for-user More information is needed from the user

Comments

@amosshi
Copy link

amosshi commented Nov 15, 2024

Warning!
It is highly recommended to discuss feature requests in the mailing lists first.

[A clear and concise description of the feature requested.]

The Problem

Currently log4j2 provides several JSON templates at:

All of current template will generate log files with long key name, which produces bigger log output.

The Request

We deliver a compact JSON format, like CLEF or similar, to make the log output smaller.

Example: CLEF format could be 47% smaller than the default EcsLayout.json.

Reference

@amosshi amosshi changed the title log4j-layout-template-json Add support to Compact Log Event Format (CLEF) log4j-layout-template-json Add support to Compact Log Event Format Nov 15, 2024
@jaykataria1111
Copy link

Seems interesting,

I would be curious to know, how this is implemented, or looked into. I am getting familiar with the repoo, this looks like an interesting feature for people.

@vy
Copy link
Member

vy commented Nov 15, 2024

@amosshi, @jaykataria1111, would you mind providing a JSON Template Layout event template for CLEF and publishing it as a part of the CLEF project with a Apache 2 License compatible license, please? If the CLEF community provides such an integration, we would be happy to point to it in the Log4j manual.

@vy vy added waiting-for-user More information is needed from the user enhancement Additions or updates to features layouts Affects one or more Layout plugins and removed waiting-for-maintainer labels Nov 15, 2024
@amosshi
Copy link
Author

amosshi commented Nov 16, 2024

Hi @vy , serilog/serilog-formatting-compact#69 created for CLEF side.

@github-actions github-actions bot added waiting-for-maintainer and removed waiting-for-user More information is needed from the user labels Nov 16, 2024
@vy vy added waiting-for-user More information is needed from the user and removed waiting-for-maintainer labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additions or updates to features layouts Affects one or more Layout plugins waiting-for-user More information is needed from the user
Projects
None yet
Development

No branches or pull requests

3 participants