elastic / elastic/ecs-logging-java
Enhancement for Compact JSON
- Dominant language
- Java
- Stars
- 148
- Forks
- 82
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 3
Description
The current implementation seems to yield a pretty printed output of the ECS JSON. Would it be possible to optionally configure the layout to output compact JSON?
Perhaps it would be valuable to add analogous features with the same capability and intent as those related to the "compact", "eventEol" and "endOfLine" etc settings which are available on the OEM JSONLayout.
See https://logging.apache.org/log4j/2.x/manual/layouts.html where pretty print vs compact format is discussed.
Contributor guide
Research direction
Start by locating the ECS JSON layout implementation and comparing its configuration with the OEM JSONLayout settings referenced in the issue. Read the linked Log4j layout documentation first; done means the ECS JSON output can be configured as compact JSON with behavior aligned to the relevant compact, eventEol, and endOfLine options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100