[ 
https://issues.apache.org/jira/browse/LOG4J2-2139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16276190#comment-16276190
 ] 

Remko Popma commented on LOG4J2-2139:
-------------------------------------

Is this really a duplicate of LOG4J2-667? That ticket seems to be more about 
adding custom data elements or custom formatting the values.
This one is about renaming the keys (not the value).

And in fact, if the standard Log4j2 JSONLayout format is incompatible with 
Kibana it may make sense to have an option to _just_ rename the key for 
{{locationInfo}} from {{"source"}} to something else. It does not need to be a 
full-blown "make all field keys customizable" feature - that would be a much 
bigger piece of work.

> JSONLayout ability to rename keys in log output - particularly locationInfo 
> "source"
> ------------------------------------------------------------------------------------
>
>                 Key: LOG4J2-2139
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2139
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Layouts
>            Reporter: Daniel Kirkdorffer
>            Priority: Minor
>              Labels: json
>
> We ran into a problem when setting {{locationInfo}} to {{true}} when 
> ingesting logs into Kibana.  The problem had to do with a conflict with 
> another existing key named {{"source"}} of type String, and the fact that 
> {{locationInfo}} produces an Object called "source".
> So it would be nice to have a way to supply a different Object name.  Perhaps 
> this could be broadened so that other key names could also be renamed?
> Maybe there is a way to do this already?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to