Description
Hi,
I am struggling to find a way, how exactly to write the syntax in yaml to be able to use
EventTemplateAdditionalFields in JsonTemplateLayout. You don't provide any example on your website and nothing I have tried works. My current config looks like this:
Configuration:
Appenders:
Console:
name: LogToConsole
target: SYSTEM_OUT
JsonTemplateLayout:
eventTemplateUri: classpath:LogstashJsonEventLayoutV1.json
stackTraceEnabled: true
maxStringLength: 32768
EventTemplateAdditionalFields:
EventTemplateAdditionalField:
- key: service
value: profiles-profile-service
Loggers:
Root:
level: info
AppenderRef:
ref: LogToConsole
Could you please help?
Best Regards,
Michal Stefan
Attachments
Issue Links
- duplicates
-
LOG4J2-2961 JsonTemplateLayout event additional fields are not read from config
- Closed