-
Notifications
You must be signed in to change notification settings - Fork 41.9k
Open
Labels
for: team-meetingAn issue we'd like to discuss as a team to make progressAn issue we'd like to discuss as a team to make progressstatus: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged
Description
Hey,
we're using Spring Boot 4.0.2 with structured logging in ECS format enabled:
logging:
structured:
format:
console: ecs
file: ecsAccording to ECS's documentation, there are fields that should not be a String, e. g. url.port. Problem is, this and probably others are logged as String as can be seen here.
I understand that this is not easy solvable as all MDC fields are String, but this violates the ECS standard and produces lots of problems when ingested in an Elastic cluster without transformation.
It'd probably best if the logger checked ECS field types and only logged them if they were convertible to the type required by the spec.
We're currently solving this by using special transformations in the spring-logback.xml which also doesn't feel good.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
for: team-meetingAn issue we'd like to discuss as a team to make progressAn issue we'd like to discuss as a team to make progressstatus: waiting-for-triageAn issue we've not yet triagedAn issue we've not yet triaged