Problem: Default structured-logging with UCS 5.2-4

Problem:

With UCS 5.2-4 structured logging is enabled by default. See here

This makes reading the logfiles much harder and difficult in some way, e.g here

The structured logging was enabled by default for

  • Listener/Notifier replication
  • UDM HTTP REST API
  • Tornado
  • univention-directory-manager (udm)
  • Univention Management Console server (UMC)
  • Univention App Center
  • Domain join module
  • System diagnostic module
  • Univention AD Takeover
  • Univention S4 Connector
  • Univention AD Connector

Note:

This new structured-logging also introduced a new debug level 5 called Trace This is e.g necessary to get “ALL” information in AD-Connector.

Solution:

For some komponents it is possible to get back the old logging behaviour with these ucr variables:

ucr set connector/debug/structured-logging=false
ucr set directory/manager/cmd/debug/structured-logging=false
ucr set directory/manager/rest/debug/structured-logging=false 
ucr set listener/debug/structured-logging=false
ucr set notifier/debug/structured-logging=false
ucr set umc/server/debug/structured-logging=false
1 Like