[
https://issues.apache.org/jira/browse/LOG4J2-3391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487545#comment-17487545
]
Gary D. Gregory commented on LOG4J2-3391:
-----------------------------------------
Hello [~ugurlu]
Where do the values for such fields originate?
Are you talking about something like one can do with the JSON layout like:
{code:xml}
<JsonLayout>
<KeyValuePair key="additionalField1" value="constant value"/>
<KeyValuePair key="additionalField2" value="$${ctx:key}"/>
</JsonLayout>
{code}
?
> NoSQLAppender additional fields
> -------------------------------
>
> Key: LOG4J2-3391
> URL: https://issues.apache.org/jira/browse/LOG4J2-3391
> Project: Log4j 2
> Issue Type: Improvement
> Components: Appenders
> Reporter: Omer U
> Priority: Major
> Fix For: 2.16.0
>
>
> Additional fields cannot be added to NoSQLAppender logs.
> I wasn't able to way a find of attaching fields application server hostname
> or a simple tag like application server name.
> Only way of adding custom information seems to be ThreadContext
--
This message was sent by Atlassian Jira
(v8.20.1#820001)