elastic / elastic/ecs-logging-java

Support structured logging with Logback

Open
#49 6 comments 31 reactions 0 assignees View on GitHub
agent-java community enhancement
Dominant language
Java
Stars
148
Forks
82
Avg merge
2d 17h
Merged PRs (30d)
3

Description

As logback user, I'd like to have the ability to create structured logs as https://github.com/elastic/ecs-logging-java/tree/master/log4j2-ecs-layout#structured-logging

Currently the community relies on "net.logstash.logback.encoder.LogstashEncoder" to generate structured log statements which leverages `Markers`. Although not ideal, as Markers are intended for filtering: http://logback.qos.ch/manual/filters.html, I think it would be useful if the EcsEncoder could support this scenario without requiring an additional dependency library

Contributor guide

Open the contributing guide

Research direction

Start by reading EcsEncoder and the linked ECS structured-logging example, then review how the current LogstashEncoder and Markers approach represents structured fields. Clarify the supported structured-log behavior and acceptance criteria before implementation; done should mean EcsEncoder supports the agreed scenario without the additional dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.