elastic / elastic/ecs-logging-java
Add support for log4j2 property substitution and lookup variables
- Vorherrschende Sprache
- Java
- Sterne
- 148
- Forks
- 82
- Ø Merge
- 2 T. 17 Std.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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
```
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Implementierung von EcsLayout und ihre vorhandenen Tests zu finden, und lies anschließend die verlinkte Log4j2-Dokumentation zur Eigenschaftensubstitution und zu Variablen für Laufzeit-Lookups. Verwende die XML-Beispielkonfiguration als Zielverhalten und überprüfe, dass EcsLayout-Attribute beide Formen dynamischer Werte auflösen können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- backend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100