Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2337

Allow custom end-of-line with JsonLayout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Server run on Unix environment.

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            asahare Arvind Sahare
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h