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

GelfLayout can't produce newline delimited events

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.1, 2.13.3
    • 2.14.0
    • Layouts
    • None

    Description

      Hello, the GelfLayout currently generates either \0 delimiter or no delimiter at all. We would like to use GELF for structured logging to files and Docker, and for that we need the events to be ended with a newline.

      I propose to add an option to GelfLayout to support this, possibly named eventEol to be same as in JsonLayout. I can provide a patch if this will be considered a good idea.

      In case the wanted behavior can be achieved without any code change, I would welcome such answer too.

      Attachments

        1. kibana.png
          1.74 MB
          Ralph Goers

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jakluk Jakub Lukes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: