[
https://issues.apache.org/jira/browse/LOG4J2-2337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468873#comment-16468873
]
Arvind Sahare edited comment on LOG4J2-2337 at 5/9/18 1:57 PM:
---------------------------------------------------------------
[[email protected]], It's printing it as a string i.e.
CR with a backslash character, Due to which its getting printed and Splunk is
not able to interpret it.
was (Author: asahare):
[[email protected]], It's printing it as a string i.e.
'\\r', Due to which its getting printed and Splunk is not able to interpret it.
> JSONLayout printing \r at end of line
> -------------------------------------
>
> Key: LOG4J2-2337
> URL: https://issues.apache.org/jira/browse/LOG4J2-2337
> Project: Log4j 2
> Issue Type: Bug
> Environment: Server run on Unix environment.
> Reporter: Arvind Sahare
> Priority: Major
>
> Log4j JSONLayout with eventEol="true", prints '\r' at end of log.
> Example:- \{"key":"value", "key":"value"}\r
>
> Problem - Currently we are using Splunk for log analysis, which is not able
> to render Log string as JSON, due to \r getting printed. Can we avoid it
> getting printed?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)