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
This commit is contained in:
Thomas Draebing
2020-02-27 16:33:31 +01:00
parent d7c8ba913a
commit 8ba0926df1
6 changed files with 136 additions and 22 deletions

View File

@@ -72,8 +72,6 @@ Apache2.0
* jetty:server
* jetty:servlet
* jetty:util
* log:json-smart
* log:jsonevent-layout
* log:log4j
* lucene:lucene-analyzers-common
* lucene:lucene-core-and-backward-codecs-merged