HomePhabricator

Do not use jsonevent-layout for error logs in JSON format

Authored by Thomas Draebing <thomas.draebing@sap.com> on Feb 27 2020, 3:33 PM.

Description

Do not use jsonevent-layout for error logs in JSON format

So far the net.logstash.log4j.jsonevent-layout package was used to
format the error logs to JSON. This format was not suitable for the
httpd- and sshd logs and thus was not used there. Also the format
provided by the dependency was not configurable, e.g. did not allow
to change the timestamp. This resulted in different timestamp formats
for the text- and the json-formatted error logs.

To be more flexible in the formatting of the json logs, this change
removes the dependency. It keeps however the ISO8601-formatted timestamp,
but adds the timezone offset and thus does not assume the UTC timezone.
In a followup change the timestamps of all logs will be adapted to the
same standard.

Change-Id: I3a2bdba5d4b25067d0324fb63438e2a6ec726c68

Event Timeline

Thomas Draebing <thomas.draebing@sap.com> committed rGERRITDEPLOY8ba0926df17e: Do not use jsonevent-layout for error logs in JSON format (authored by Thomas Draebing <thomas.draebing@sap.com>).Mar 6 2020, 3:23 PM