How to Enable UTC / ISO 8601 Format Logging in IBM Manta Data Lineage
Manta Data Lineage can be configured so that all date and time stamps, both time stamps in Manta Data Lineage-generated log files as well as time stamps on revision numbers reflect the UTC time zone or ISO 8601 format.
UTC Time Zone Configuration
The adjustments required to update the logging time stamps to reflect the UTC time zone are as follows.
-
Update all (4)
log4j2.xml
files to reflect the following format for all occurrences of the%d{yyyy-MM-dd HH:mm:ss.SSS}
syntax from within the file.-
%d{yyyy-MM-dd HH:mm:ss.SSS}
→%d{yyyy-MM-dd HH:mm:ss.SSS}{GMT+0}
-
Locate any other date references in the file
%d{yyyy_MM_dd}
and append{GMT+0}
to them. -
You will find the Log4J configuration at:
-
Admin UI > Configuration > Server > Common > Log4J Server
-
Admin UI > Configuration > CLI > Common > Log4J CLI
-
Admin UI > Configuration > CLI > Common > Log4J Platform
-
Admin UI > Configuration > Admin UI > Common > Log4J Admin UI
-
-
-
Add the line below to both
setenv.sh
files.-
CATALINA_OPTS=-Duser.timezone=UTC
-
You will find the
setenv.sh
files here:-
/opt/mantaflow/server/bin/setenv.sh
-
/opt/mantaflow/serviceutility/bin/setenv.sh
-
-
-
Add the lines below to the
logging.properties
files.java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter org.apache.juli.OneLineFormatter.timeFormat = yyyy-MM-dd HH:mm:ss.SSS
-
You will find the
logging.properties
files here:-
/opt/mantaflow/server/conf/logging.properties
-
/opt/mantaflow/serviceutility/conf/logging.properties
-
-
ISO 8601 Configuration
The adjustments required to update the logging time stamps to the ISO 8601 format are as follows.
-
Update all (4)
log4j2.xml
files to reflect the following.-
%d{yyyy-MM-dd HH:mm:ss.SSS}
→%d{ISO8601}{GMT+0}Z
-
Locate any other date references in the file
%d{yyyy_MM_dd}
and append{GMT+0}
to them. -
You will find the Log4J configuration at:
-
Admin UI > Configuration > Server > Common > Log4J Server
-
Admin UI > Configuration > CLI > Common > Log4J CLI
-
Admin UI > Configuration > CLI > Common > Log4J Platform
-
Admin UI > Configuration > Admin UI > Common > Log4J Admin UI
-
-
-
Add the line below to both
setenv.sh
files.-
CATALINA_OPTS=-Duser.timezone=UTC
-
You will find the
setenv.sh
files here:-
/opt/mantaflow/server/bin/setenv.sh
-
/opt/mantaflow/serviceutility/bin/setenv.sh
-
-
-
Add the lines below to the
logging.properties
files.java.util.logging.ConsoleHandler.formatter = org.apache.juli.OneLineFormatter org.apache.juli.OneLineFormatter.timeFormat = yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
-
You will find the
logging.properties
files here:-
/opt/mantaflow/server/conf/logging.properties
-
/opt/mantaflow/serviceutility/conf/logging.properties
-
-