elastic / elastic/ecs-logging-java

Add support for log4j2 property substitution and lookup variables

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

Description

Hi,

`EcsLayout` component is great for log4j2.
But for now, we can't inject dynamic values in `EcsLayout` attributes.
For instance; `serviceVersion` and `serviceNodeName`

So it would be great to add support for log4j2 [property substitution](https://logging.apache.org/log4j/2.x/manual/configuration.html#PropertySubstitution) and [lookup variables](https://logging.apache.org/log4j/2.x/manual/configuration.html#RuntimeLookup) in EcsLayout attributes!

It would allow to write this EcsLayout configuration for instance:
``` xml

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.