You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by dschulten <di...@escalon.de> on 2020/05/27 13:35:09 UTC

Make mdc properties top-level attributes in decanter elasticsearch appender

Decanter produces mdc attributes as a nested structure. The behaviour in the
official  Elasticsearch ecs json format
<https://github.com/elastic/ecs-logging-java>    and with the 
logstash-logback-encoder
<https://github.com/logstash/logstash-logback-encoder>   is different: the
mdc attributes become top-level fields.

I have found the behaviour of decanter only on the
https://github.com/vy/log4j2-logstash-layout.

Is it possible to pull up the mdc fields so that they become top-level
attributes?

A workaround would of course be to put logstash in front of Elasticsearch,
but I would rather avoid that.

Cheers,
Dietrich





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html