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

Allow custom end-of-line with JsonLayout

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              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