Liberty のログを設定する

# 目的
Libertyのログファイルとその出力フォーマットの設定をして、出力を確認します。

# Gitレポジトリ
用意したGitレポジトリをクローンします。

```
git clone https://github.com/pdprof/logging.git
cd logging/logging-docker
```

# Libertyのイメージをビルド

起動したときのログ出力をみるだけなので、ほとんどカスタマイズはありませんがビルドします。

```
./setup-docker.sh
```

# ログフォーマットを切り替えて起動

ログの設定については以下のサイトを確認します。

https://openliberty.io/docs/latest/log-trace-configuration.html

ここでは紹介されている設定をすぐに起動できるようにしたものです。試したい設定があったら、設定をかえてビルドや起動をさせます。

## デフォルト(console.log:DEV, messages.log:SIMPLE)

起動コマンド
```
./start-default.sh 
```

ログの例
podman logs <pod_name> で console.log が確認できます。
podman exec <pod_name> cat /tmp/messages.log で messages.log を確認します。

```
$ podman logs logging-default 

WARNING: Unknown module: jdk.management.agent specified to --add-exports
WARNING: Unknown module: jdk.attach specified to --add-exports
Launching defaultServer (Open Liberty 24.0.0.5/wlp-1.0.89.cl240520240506-1951) on Eclipse OpenJ9 VM, version 11.0.22+7 (en_US)
[AUDIT   ] CWWKE0001I: The server defaultServer has been launched.
[AUDIT   ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml
[AUDIT   ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/open-default-port.xml
[AUDIT   ] CWWKZ0058I: Monitoring dropins for applications.
[AUDIT   ] CWWKS4104A: LTPA keys created in 0.364 seconds. LTPA key file: /opt/ol/wlp/output/defaultServer/resources/security/ltpa.keys
[AUDIT   ] CWWKF1037I: The server added the [eventLogging-1.0, localConnector-1.0, requestTiming-1.0] features to the existing feature set.
[AUDIT   ] CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbLite-3.2, el-3.0, eventLogging-1.0, jaspic-1.1, jaxrs-2.1, jaxrsClient-2.1, jdbc-4.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, jsonb-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, managedBeans-1.0, requestTiming-1.0, servlet-4.0, ssl-1.0, webProfile-8.0, websocket-1.1].
[AUDIT   ] CWWKF0013I: The server removed the following features: [appClientSupport-1.0, batch-1.0, concurrent-1.0, ejb-3.2, ejbHome-3.2, ejbPersistentTimer-3.2, ejbRemote-3.2, j2eeManagement-1.1, jacc-1.5, javaMail-1.6, javaee-8.0, jaxb-2.2, jaxws-2.2, jca-1.7, jcaInboundSecurity-1.0, jms-2.0, mdb-3.2, wasJmsClient-2.0, wasJmsSecurity-1.0, wasJmsServer-1.0].
[AUDIT   ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 2.814 seconds.
[AUDIT   ] CWPKI0803A: SSL certificate created in 1.547 seconds. SSL key file: /opt/ol/wlp/output/defaultServer/resources/security/key.p12

$ podman exec logging-default cat /logs/messages.log
********************************************************************************
product = Open Liberty 24.0.0.5 (wlp-1.0.89.cl240520240506-1951)
wlp.install.dir = /opt/ol/wlp/
server.output.dir = /opt/ol/wlp/output/defaultServer/
java.home = /opt/java/openjdk
java.version = 11.0.22
java.runtime = IBM Semeru Runtime Open Edition (11.0.22+7)
os = Linux (5.14.0-352.el9.x86_64; amd64) (en_US)
process = 1@10.0.2.100
Classpath = /opt/ol/wlp/bin/tools/ws-server.jar
Java Library path = /opt/java/openjdk/lib/default:/opt/java/openjdk/lib:/usr/lib64:/usr/lib
********************************************************************************
[5/31/24, 10:55:01:151 UTC] 00000001 com.ibm.ws.kernel.launch.internal.FrameworkManager           A CWWKE0001I: The server defaultServer has been launched.
[5/31/24, 10:55:02:210 UTC] 00000029 com.ibm.ws.config.xml.internal.ServerXMLConfiguration        A CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml
[5/31/24, 10:55:02:216 UTC] 00000029 com.ibm.ws.config.xml.internal.ServerXMLConfiguration        A CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/open-default-port.xml
[5/31/24, 10:55:02:275 UTC] 00000001 com.ibm.ws.kernel.launch.internal.FrameworkManager           I CWWKE0002I: The kernel started after 1.231 seconds
[5/31/24, 10:55:02:304 UTC] 00000033 com.ibm.ws.kernel.feature.internal.FeatureManager            I CWWKF0007I: Feature update started.
[5/31/24, 10:55:02:958 UTC] 00000025 com.ibm.ws.security.ready.internal.SecurityReadyServiceImpl  I CWWKS0007I: The security service is starting...
[5/31/24, 10:55:03:007 UTC] 00000027 com.ibm.ws.app.manager.internal.monitor.DropinMonitor        A CWWKZ0058I: Monitoring dropins for applications.
[5/31/24, 10:55:03:155 UTC] 00000029 com.ibm.ws.cache.ServerCache                                 I DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.
[5/31/24, 10:55:03:156 UTC] 00000029 com.ibm.ws.cache.ServerCache                                 I DYNA1071I: The cache provider default is being used.
[5/31/24, 10:55:03:157 UTC] 00000029 com.ibm.ws.cache.CacheServiceImpl                            I DYNA1056I: Dynamic Cache (object cache) initialized successfully.
[5/31/24, 10:55:03:235 UTC] 0000002e com.ibm.ws.ssl.config.WSKeyStore                             I CWPKI0802I: Creating the SSL certificate. This may take a few seconds.
[5/31/24, 10:55:03:246 UTC] 0000003f com.ibm.ws.security.token.ltpa.LTPAKeyInfoManager            I CWWKS4103I: Creating the LTPA keys. This may take a few seconds.
[5/31/24, 10:55:03:260 UTC] 00000025 ibm.ws.security.authentication.internal.jaas.JAASServiceImpl I CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. 
[5/31/24, 10:55:03:328 UTC] 00000025 com.ibm.ws.security.jaspi.AuthConfigFactoryWrapper           I CWWKS1655I: The default Java Authentication SPI for Containers (JASPIC) AuthConfigFactory class com.ibm.ws.security.jaspi.ProviderRegistry is being used because the Java security property authconfigprovider.factory is not set. 
[5/31/24, 10:55:03:610 UTC] 0000003f com.ibm.ws.security.token.ltpa.LTPAKeyInfoManager            A CWWKS4104A: LTPA keys created in 0.364 seconds. LTPA key file: /opt/ol/wlp/output/defaultServer/resources/security/ltpa.keys
[5/31/24, 10:55:03:612 UTC] 0000003f com.ibm.ws.security.token.ltpa.internal.LTPAKeyCreateTask    I CWWKS4105I: LTPA configuration is ready after 0.367 seconds.
[5/31/24, 10:55:03:786 UTC] 00000033 com.ibm.ws.tcpchannel.internal.TCPPort                       I CWWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host *  (IPv6) port 9080.
[5/31/24, 10:55:03:833 UTC] 00000033 com.ibm.ws.logging.internal.impl.IncidentImpl                I FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 144" at ffdc_24.05.31_10.55.03.0.log
[5/31/24, 10:55:03:835 UTC] 00000033 com.ibm.ws.logging.internal.impl.IncidentImpl                I FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 localConnectorInit" at ffdc_24.05.31_10.55.03.1.log
[5/31/24, 10:55:03:837 UTC] 00000033 io.openliberty.reporting.internal.FixReportingComponent      I CWWKF1701I: The checking for security vulnerabilities is disabled.
[5/31/24, 10:55:03:856 UTC] 00000033 com.ibm.ws.kernel.feature.internal.FeatureManager            A CWWKF1037I: The server added the [eventLogging-1.0, localConnector-1.0, requestTiming-1.0] features to the existing feature set.
[5/31/24, 10:55:03:856 UTC] 00000033 com.ibm.ws.kernel.feature.internal.FeatureManager            A CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbLite-3.2, el-3.0, eventLogging-1.0, jaspic-1.1, jaxrs-2.1, jaxrsClient-2.1, jdbc-4.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, jsonb-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, managedBeans-1.0, requestTiming-1.0, servlet-4.0, ssl-1.0, webProfile-8.0, websocket-1.1].
[5/31/24, 10:55:03:857 UTC] 00000033 com.ibm.ws.kernel.feature.internal.FeatureManager            A CWWKF0013I: The server removed the following features: [appClientSupport-1.0, batch-1.0, concurrent-1.0, ejb-3.2, ejbHome-3.2, ejbPersistentTimer-3.2, ejbRemote-3.2, j2eeManagement-1.1, jacc-1.5, javaMail-1.6, javaee-8.0, jaxb-2.2, jaxws-2.2, jca-1.7, jcaInboundSecurity-1.0, jms-2.0, mdb-3.2, wasJmsClient-2.0, wasJmsSecurity-1.0, wasJmsServer-1.0].
[5/31/24, 10:55:03:857 UTC] 00000033 com.ibm.ws.kernel.feature.internal.FeatureManager            I CWWKF0008I: Feature update completed in 1.582 seconds.
[5/31/24, 10:55:03:857 UTC] 00000033 com.ibm.ws.kernel.feature.internal.FeatureManager            A CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 2.814 seconds.
[5/31/24, 10:55:04:782 UTC] 0000002e com.ibm.ws.ssl.config.WSKeyStore                             A CWPKI0803A: SSL certificate created in 1.547 seconds. SSL key file: /opt/ol/wlp/output/defaultServer/resources/security/key.p12
[5/31/24, 10:55:04:782 UTC] 0000002e com.ibm.ws.ssl.config.WSKeyStore                             I Successfully loaded default keystore: /opt/ol/wlp/output/defaultServer/resources/security/key.p12 of type: PKCS12
[5/31/24, 10:55:04:831 UTC] 00000036 com.ibm.ws.tcpchannel.internal.TCPPort                       I CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.
```

## console.log:tbasic, messages.log:tbasic

tWASと同じログフォーマットです。

起動コマンド
```
./start-tbasic.sh
```

ログの例
```
$ podman logs logging-tbasic 

WARNING: Unknown module: jdk.management.agent specified to --add-exports
WARNING: Unknown module: jdk.attach specified to --add-exports
Launching defaultServer (Open Liberty 24.0.0.5/wlp-1.0.89.cl240520240506-1951) on Eclipse OpenJ9 VM, version 11.0.22+7 (en_US)
[5/31/24, 11:00:44:155 UTC] 00000001 FrameworkMana A   CWWKE0001I: The server defaultServer has been launched.
[5/31/24, 11:00:45:173 UTC] 00000029 ServerXMLConf A   CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml
[5/31/24, 11:00:45:187 UTC] 00000029 ServerXMLConf A   CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/open-default-port.xml
[5/31/24, 11:00:45:260 UTC] 00000001 FrameworkMana I   CWWKE0002I: The kernel started after 1.217 seconds
[5/31/24, 11:00:45:288 UTC] 00000033 FeatureManage I   CWWKF0007I: Feature update started.
[5/31/24, 11:00:45:993 UTC] 00000025 SecurityReady I   CWWKS0007I: The security service is starting...
[5/31/24, 11:00:46:045 UTC] 00000029 DropinMonitor A   CWWKZ0058I: Monitoring dropins for applications.
[5/31/24, 11:00:46:207 UTC] 00000026 ServerCache   I   DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.
[5/31/24, 11:00:46:208 UTC] 00000026 ServerCache   I   DYNA1071I: The cache provider default is being used.
[5/31/24, 11:00:46:209 UTC] 00000026 CacheServiceI I   DYNA1056I: Dynamic Cache (object cache) initialized successfully.
[5/31/24, 11:00:46:268 UTC] 0000002e WSKeyStore    I   CWPKI0802I: Creating the SSL certificate. This may take a few seconds.
[5/31/24, 11:00:46:280 UTC] 00000041 LTPAKeyInfoMa I   CWWKS4103I: Creating the LTPA keys. This may take a few seconds.
[5/31/24, 11:00:46:293 UTC] 00000025 JAASServiceIm I   CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. 
[5/31/24, 11:00:46:364 UTC] 00000025 AuthConfigFac I   CWWKS1655I: The default Java Authentication SPI for Containers (JASPIC) AuthConfigFactory class com.ibm.ws.security.jaspi.ProviderRegistry is being used because the Java security property authconfigprovider.factory is not set. 
[5/31/24, 11:00:46:666 UTC] 00000041 LTPAKeyInfoMa A   CWWKS4104A: LTPA keys created in 0.386 seconds. LTPA key file: /opt/ol/wlp/output/defaultServer/resources/security/ltpa.keys
[5/31/24, 11:00:46:674 UTC] 00000041 LTPAKeyCreate I   CWWKS4105I: LTPA configuration is ready after 0.395 seconds.
[5/31/24, 11:00:46:820 UTC] 00000033 TCPPort       I   CWWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host *  (IPv6) port 9080.
[5/31/24, 11:00:46:870 UTC] 00000033 IncidentImpl  I   FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 144" at ffdc_24.05.31_11.00.46.0.log
[5/31/24, 11:00:46:873 UTC] 00000033 IncidentImpl  I   FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 localConnectorInit" at ffdc_24.05.31_11.00.46.1.log
[5/31/24, 11:00:46:874 UTC] 00000033 FixReportingC I   CWWKF1701I: The checking for security vulnerabilities is disabled.
[5/31/24, 11:00:46:893 UTC] 00000033 FeatureManage A   CWWKF1037I: The server added the [eventLogging-1.0, localConnector-1.0, requestTiming-1.0] features to the existing feature set.
[5/31/24, 11:00:46:893 UTC] 00000033 FeatureManage A   CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbLite-3.2, el-3.0, eventLogging-1.0, jaspic-1.1, jaxrs-2.1, jaxrsClient-2.1, jdbc-4.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, jsonb-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, managedBeans-1.0, requestTiming-1.0, servlet-4.0, ssl-1.0, webProfile-8.0, websocket-1.1].
[5/31/24, 11:00:46:893 UTC] 00000033 FeatureManage A   CWWKF0013I: The server removed the following features: [appClientSupport-1.0, batch-1.0, concurrent-1.0, ejb-3.2, ejbHome-3.2, ejbPersistentTimer-3.2, ejbRemote-3.2, j2eeManagement-1.1, jacc-1.5, javaMail-1.6, javaee-8.0, jaxb-2.2, jaxws-2.2, jca-1.7, jcaInboundSecurity-1.0, jms-2.0, mdb-3.2, wasJmsClient-2.0, wasJmsSecurity-1.0, wasJmsServer-1.0].
[5/31/24, 11:00:46:894 UTC] 00000033 FeatureManage I   CWWKF0008I: Feature update completed in 1.634 seconds.
[5/31/24, 11:00:46:894 UTC] 00000033 FeatureManage A   CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 2.852 seconds.
[5/31/24, 11:00:47:560 UTC] 0000002e WSKeyStore    A   CWPKI0803A: SSL certificate created in 1.292 seconds. SSL key file: /opt/ol/wlp/output/defaultServer/resources/security/key.p12
[5/31/24, 11:00:47:561 UTC] 0000002e WSKeyStore    I   Successfully loaded default keystore: /opt/ol/wlp/output/defaultServer/resources/security/key.p12 of type: PKCS12
[5/31/24, 11:00:47:624 UTC] 0000004c TCPPort       I   CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.

$ podman exec logging-tbasic cat /logs/messages.log
********************************************************************************
product = Open Liberty 24.0.0.5 (wlp-1.0.89.cl240520240506-1951)
wlp.install.dir = /opt/ol/wlp/
server.output.dir = /opt/ol/wlp/output/defaultServer/
java.home = /opt/java/openjdk
java.version = 11.0.22
java.runtime = IBM Semeru Runtime Open Edition (11.0.22+7)
os = Linux (5.14.0-352.el9.x86_64; amd64) (en_US)
process = 1@10.0.2.100
Classpath = /opt/ol/wlp/bin/tools/ws-server.jar
Java Library path = /opt/java/openjdk/lib/default:/opt/java/openjdk/lib:/usr/lib64:/usr/lib
********************************************************************************
[5/31/24, 11:00:44:155 UTC] 00000001 FrameworkMana A   CWWKE0001I: The server defaultServer has been launched.
[5/31/24, 11:00:45:173 UTC] 00000029 ServerXMLConf A   CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml
[5/31/24, 11:00:45:187 UTC] 00000029 ServerXMLConf A   CWWKG0093A: Processing configuration drop-ins resource: /opt/ol/wlp/usr/servers/defaultServer/configDropins/defaults/open-default-port.xml
[5/31/24, 11:00:45:260 UTC] 00000001 FrameworkMana I   CWWKE0002I: The kernel started after 1.217 seconds
[5/31/24, 11:00:45:288 UTC] 00000033 FeatureManage I   CWWKF0007I: Feature update started.
[5/31/24, 11:00:45:993 UTC] 00000025 SecurityReady I   CWWKS0007I: The security service is starting...
[5/31/24, 11:00:46:045 UTC] 00000029 DropinMonitor A   CWWKZ0058I: Monitoring dropins for applications.
[5/31/24, 11:00:46:207 UTC] 00000026 ServerCache   I   DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.
[5/31/24, 11:00:46:208 UTC] 00000026 ServerCache   I   DYNA1071I: The cache provider default is being used.
[5/31/24, 11:00:46:209 UTC] 00000026 CacheServiceI I   DYNA1056I: Dynamic Cache (object cache) initialized successfully.
[5/31/24, 11:00:46:268 UTC] 0000002e WSKeyStore    I   CWPKI0802I: Creating the SSL certificate. This may take a few seconds.
[5/31/24, 11:00:46:280 UTC] 00000041 LTPAKeyInfoMa I   CWWKS4103I: Creating the LTPA keys. This may take a few seconds.
[5/31/24, 11:00:46:293 UTC] 00000025 JAASServiceIm I   CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. 
[5/31/24, 11:00:46:364 UTC] 00000025 AuthConfigFac I   CWWKS1655I: The default Java Authentication SPI for Containers (JASPIC) AuthConfigFactory class com.ibm.ws.security.jaspi.ProviderRegistry is being used because the Java security property authconfigprovider.factory is not set. 
[5/31/24, 11:00:46:666 UTC] 00000041 LTPAKeyInfoMa A   CWWKS4104A: LTPA keys created in 0.386 seconds. LTPA key file: /opt/ol/wlp/output/defaultServer/resources/security/ltpa.keys
[5/31/24, 11:00:46:674 UTC] 00000041 LTPAKeyCreate I   CWWKS4105I: LTPA configuration is ready after 0.395 seconds.
[5/31/24, 11:00:46:820 UTC] 00000033 TCPPort       I   CWWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host *  (IPv6) port 9080.
[5/31/24, 11:00:46:870 UTC] 00000033 IncidentImpl  I   FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 144" at ffdc_24.05.31_11.00.46.0.log
[5/31/24, 11:00:46:873 UTC] 00000033 IncidentImpl  I   FFDC1015I: An FFDC Incident has been created: "java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 localConnectorInit" at ffdc_24.05.31_11.00.46.1.log
[5/31/24, 11:00:46:874 UTC] 00000033 FixReportingC I   CWWKF1701I: The checking for security vulnerabilities is disabled.
[5/31/24, 11:00:46:893 UTC] 00000033 FeatureManage A   CWWKF1037I: The server added the [eventLogging-1.0, localConnector-1.0, requestTiming-1.0] features to the existing feature set.
[5/31/24, 11:00:46:893 UTC] 00000033 FeatureManage A   CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbLite-3.2, el-3.0, eventLogging-1.0, jaspic-1.1, jaxrs-2.1, jaxrsClient-2.1, jdbc-4.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, jsonb-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, managedBeans-1.0, requestTiming-1.0, servlet-4.0, ssl-1.0, webProfile-8.0, websocket-1.1].
[5/31/24, 11:00:46:893 UTC] 00000033 FeatureManage A   CWWKF0013I: The server removed the following features: [appClientSupport-1.0, batch-1.0, concurrent-1.0, ejb-3.2, ejbHome-3.2, ejbPersistentTimer-3.2, ejbRemote-3.2, j2eeManagement-1.1, jacc-1.5, javaMail-1.6, javaee-8.0, jaxb-2.2, jaxws-2.2, jca-1.7, jcaInboundSecurity-1.0, jms-2.0, mdb-3.2, wasJmsClient-2.0, wasJmsSecurity-1.0, wasJmsServer-1.0].
[5/31/24, 11:00:46:894 UTC] 00000033 FeatureManage I   CWWKF0008I: Feature update completed in 1.634 seconds.
[5/31/24, 11:00:46:894 UTC] 00000033 FeatureManage A   CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 2.852 seconds.
[5/31/24, 11:00:47:560 UTC] 0000002e WSKeyStore    A   CWPKI0803A: SSL certificate created in 1.292 seconds. SSL key file: /opt/ol/wlp/output/defaultServer/resources/security/key.p12
[5/31/24, 11:00:47:561 UTC] 0000002e WSKeyStore    I   Successfully loaded default keystore: /opt/ol/wlp/output/defaultServer/resources/security/key.p12 of type: PKCS12
[5/31/24, 11:00:47:624 UTC] 0000004c TCPPort       I   CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.
```

## console.log:json, messages.log:json

JSONフォーマットは、ほかのプログラムで整形する場合に使えます。ログファイルを目視する目的には向いていません。行数は変わりませんが、1行が長くなっています。

起動コマンド
```
./start-json.sh
```

ログの例

```
$ podman logs logging-json 

WARNING: Unknown module: jdk.management.agent specified to --add-exports
WARNING: Unknown module: jdk.attach specified to --add-exports
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"Launching defaultServer (Open Liberty 24.0.0.5\/wlp-1.0.89.cl240520240506-1951) on Eclipse OpenJ9 VM, version 11.0.22+7 (en_US)","ibm_datetime":"2024-05-31T11:05:10.613+0000","ibm_sequence":"1717153510614_0000000000001"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKE0001I: The server defaultServer has been launched.","ibm_threadId":"00000001","ibm_datetime":"2024-05-31T11:05:10.669+0000","ibm_messageId":"CWWKE0001I","module":"com.ibm.ws.kernel.launch.internal.FrameworkManager","loglevel":"AUDIT","ibm_sequence":"1717153510669_0000000000001","ext_thread":"main"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKG0093A: Processing configuration drop-ins resource: \/opt\/ol\/wlp\/usr\/servers\/defaultServer\/configDropins\/defaults\/keystore.xml","ibm_threadId":"00000026","ibm_datetime":"2024-05-31T11:05:11.675+0000","ibm_messageId":"CWWKG0093A","module":"com.ibm.ws.config.xml.internal.ServerXMLConfiguration","loglevel":"AUDIT","ibm_sequence":"1717153511675_0000000000002","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKG0093A: Processing configuration drop-ins resource: \/opt\/ol\/wlp\/usr\/servers\/defaultServer\/configDropins\/defaults\/open-default-port.xml","ibm_threadId":"00000026","ibm_datetime":"2024-05-31T11:05:11.690+0000","ibm_messageId":"CWWKG0093A","module":"com.ibm.ws.config.xml.internal.ServerXMLConfiguration","loglevel":"AUDIT","ibm_sequence":"1717153511690_0000000000003","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKE0002I: The kernel started after 1.219 seconds","ibm_threadId":"00000001","ibm_datetime":"2024-05-31T11:05:11.750+0000","ibm_messageId":"CWWKE0002I","module":"com.ibm.ws.kernel.launch.internal.FrameworkManager","loglevel":"INFO","ibm_sequence":"1717153511750_0000000000004","ext_thread":"main"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0007I: Feature update started.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:11.777+0000","ibm_messageId":"CWWKF0007I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"INFO","ibm_sequence":"1717153511777_0000000000005","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS0007I: The security service is starting...","ibm_threadId":"00000025","ibm_datetime":"2024-05-31T11:05:12.424+0000","ibm_messageId":"CWWKS0007I","module":"com.ibm.ws.security.ready.internal.SecurityReadyServiceImpl","loglevel":"INFO","ibm_sequence":"1717153512424_0000000000006","ext_thread":"Start Level: Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKZ0058I: Monitoring dropins for applications.","ibm_threadId":"00000027","ibm_datetime":"2024-05-31T11:05:12.473+0000","ibm_messageId":"CWWKZ0058I","module":"com.ibm.ws.app.manager.internal.monitor.DropinMonitor","loglevel":"AUDIT","ibm_sequence":"1717153512473_0000000000007","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.","ibm_threadId":"00000028","ibm_datetime":"2024-05-31T11:05:12.655+0000","ibm_messageId":"DYNA1001I","module":"com.ibm.ws.cache.ServerCache","loglevel":"INFO","ibm_sequence":"1717153512655_0000000000008","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"DYNA1071I: The cache provider default is being used.","ibm_threadId":"00000028","ibm_datetime":"2024-05-31T11:05:12.656+0000","ibm_messageId":"DYNA1071I","module":"com.ibm.ws.cache.ServerCache","loglevel":"INFO","ibm_sequence":"1717153512656_0000000000009","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"DYNA1056I: Dynamic Cache (object cache) initialized successfully.","ibm_threadId":"00000028","ibm_datetime":"2024-05-31T11:05:12.657+0000","ibm_messageId":"DYNA1056I","module":"com.ibm.ws.cache.CacheServiceImpl","loglevel":"INFO","ibm_sequence":"1717153512657_000000000000A","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWPKI0802I: Creating the SSL certificate. This may take a few seconds.","ibm_threadId":"0000002e","ibm_datetime":"2024-05-31T11:05:12.715+0000","ibm_messageId":"CWPKI0802I","module":"com.ibm.ws.ssl.config.WSKeyStore","loglevel":"INFO","ibm_sequence":"1717153512715_000000000000B","ext_thread":"Config-Thread-2"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS4103I: Creating the LTPA keys. This may take a few seconds.","ibm_threadId":"0000003f","ibm_datetime":"2024-05-31T11:05:12.726+0000","ibm_messageId":"CWWKS4103I","module":"com.ibm.ws.security.token.ltpa.LTPAKeyInfoManager","loglevel":"INFO","ibm_sequence":"1717153512726_000000000000C","ext_thread":"Default Executor-thread-4"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. ","ibm_threadId":"00000025","ibm_datetime":"2024-05-31T11:05:12.739+0000","ibm_messageId":"CWWKS1123I","module":"com.ibm.ws.security.authentication.internal.jaas.JAASServiceImpl","loglevel":"INFO","ibm_sequence":"1717153512739_000000000000D","ext_thread":"Start Level: Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS1655I: The default Java Authentication SPI for Containers (JASPIC) AuthConfigFactory class com.ibm.ws.security.jaspi.ProviderRegistry is being used because the Java security property authconfigprovider.factory is not set. ","ibm_threadId":"00000025","ibm_datetime":"2024-05-31T11:05:12.808+0000","ibm_messageId":"CWWKS1655I","module":"com.ibm.ws.security.jaspi.AuthConfigFactoryWrapper","loglevel":"INFO","ibm_sequence":"1717153512808_000000000000E","ext_thread":"Start Level: Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS4104A: LTPA keys created in 0.310 seconds. LTPA key file: \/opt\/ol\/wlp\/output\/defaultServer\/resources\/security\/ltpa.keys","ibm_threadId":"0000003f","ibm_datetime":"2024-05-31T11:05:13.036+0000","ibm_messageId":"CWWKS4104A","module":"com.ibm.ws.security.token.ltpa.LTPAKeyInfoManager","loglevel":"AUDIT","ibm_sequence":"1717153513036_000000000000F","ext_thread":"Default Executor-thread-4"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS4105I: LTPA configuration is ready after 0.320 seconds.","ibm_threadId":"0000003f","ibm_datetime":"2024-05-31T11:05:13.046+0000","ibm_messageId":"CWWKS4105I","module":"com.ibm.ws.security.token.ltpa.internal.LTPAKeyCreateTask","loglevel":"INFO","ibm_sequence":"1717153513046_0000000000010","ext_thread":"Default Executor-thread-4"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host *  (IPv6) port 9080.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.289+0000","ibm_messageId":"CWWKO0219I","module":"com.ibm.ws.tcpchannel.internal.TCPPort","loglevel":"INFO","ibm_sequence":"1717153513289_0000000000011","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"FFDC1015I: An FFDC Incident has been created: \"java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 144\" at ffdc_24.05.31_11.05.13.0.log","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.356+0000","ibm_messageId":"FFDC1015I","module":"com.ibm.ws.logging.internal.impl.IncidentImpl","loglevel":"INFO","ibm_sequence":"1717153513356_0000000000012","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_ffdc","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","ibm_datetime":"2024-05-31T11:05:13.349+0000","message":"com.sun.tools.attach.VirtualMachine","ibm_className":"com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1","ibm_exceptionName":"java.lang.ClassNotFoundException","ibm_probeID":"144","ibm_threadId":"00000033","ibm_stackTrace":"java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine\n\tat java.base\/java.lang.Class.forNameImpl(Native Method)\n\tat java.base\/java.lang.Class.forName(Unknown Source)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1.run(LocalConnectorActivator.java:124)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1.run(LocalConnectorActivator.java:63)\n\tat java.base\/java.security.AccessController.doPrivileged(Unknown Source)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper.initConnectorAddress(LocalConnectorActivator.java:63)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper.<clinit>(LocalConnectorActivator.java:53)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator.createJmxAddressResource(LocalConnectorActivator.java:217)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator.createJMXWorkAreaResource(LocalConnectorActivator.java:209)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator.<init>(LocalConnectorActivator.java:166)\n\tat java.base\/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat java.base\/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)\n\tat java.base\/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)\n\tat java.base\/java.lang.reflect.Constructor.newInstance(Unknown Source)\n\tat org.apache.felix.scr.impl.inject.internal.ComponentConstructorImpl.newInstance(ComponentConstructorImpl.java:326)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:286)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:1002)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:975)\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:785)\n\tat org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1287)\n\tat org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1238)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1232)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1152)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:959)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:895)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1184)\n\tat org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:116)\n\tat org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:123)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:961)\n\tat org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)\n\tat org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:945)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:882)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:144)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:270)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:500)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:519)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1047)\n\tat com.ibm.ws.kernel.feature.internal.FeatureManager.update(FeatureManager.java:803)\n\tat com.ibm.ws.kernel.feature.internal.FeatureManager.processFeatureChanges(FeatureManager.java:901)\n\tat com.ibm.ws.kernel.feature.internal.FeatureManager$1.run(FeatureManager.java:686)\n\tat com.ibm.ws.threading.internal.ExecutorServiceImpl$RunnableWrapper.run(ExecutorServiceImpl.java:280)\n\tat java.base\/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n\tat java.base\/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n\tat java.base\/java.lang.Thread.run(Unknown Source)\n","ibm_objectDetails":"Object type = com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1\n  serialVersionUID = -6961869169337658885\n  $$$tc$$$ = class com.ibm.websphere.ras.TraceComponent@e9b3ef8c\n    strings[0] = \"TraceComponent[com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1,class com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1,[],null,null]\"\n\n","ibm_sequence":"1717153513349_0000000000001"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"FFDC1015I: An FFDC Incident has been created: \"java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 localConnectorInit\" at ffdc_24.05.31_11.05.13.1.log","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.360+0000","ibm_messageId":"FFDC1015I","module":"com.ibm.ws.logging.internal.impl.IncidentImpl","loglevel":"INFO","ibm_sequence":"1717153513360_0000000000013","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_ffdc","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","ibm_datetime":"2024-05-31T11:05:13.359+0000","message":"com.sun.tools.attach.VirtualMachine","ibm_className":"com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1","ibm_exceptionName":"java.lang.ClassNotFoundException","ibm_probeID":"localConnectorInit","ibm_threadId":"00000033","ibm_stackTrace":"java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine\n\tat java.base\/java.lang.Class.forNameImpl(Native Method)\n\tat java.base\/java.lang.Class.forName(Unknown Source)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1.run(LocalConnectorActivator.java:124)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1.run(LocalConnectorActivator.java:63)\n\tat java.base\/java.security.AccessController.doPrivileged(Unknown Source)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper.initConnectorAddress(LocalConnectorActivator.java:63)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper.<clinit>(LocalConnectorActivator.java:53)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator.createJmxAddressResource(LocalConnectorActivator.java:217)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator.createJMXWorkAreaResource(LocalConnectorActivator.java:209)\n\tat com.ibm.ws.jmx.connector.local.LocalConnectorActivator.<init>(LocalConnectorActivator.java:166)\n\tat java.base\/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\n\tat java.base\/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)\n\tat java.base\/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)\n\tat java.base\/java.lang.reflect.Constructor.newInstance(Unknown Source)\n\tat org.apache.felix.scr.impl.inject.internal.ComponentConstructorImpl.newInstance(ComponentConstructorImpl.java:326)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:286)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:115)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:1002)\n\tat org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:975)\n\tat org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:785)\n\tat org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1287)\n\tat org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:1238)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1232)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1152)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:959)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:895)\n\tat org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1184)\n\tat org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:116)\n\tat org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:123)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:961)\n\tat org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)\n\tat org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:945)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:882)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:144)\n\tat org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:270)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:500)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:519)\n\tat org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:1047)\n\tat com.ibm.ws.kernel.feature.internal.FeatureManager.update(FeatureManager.java:803)\n\tat com.ibm.ws.kernel.feature.internal.FeatureManager.processFeatureChanges(FeatureManager.java:901)\n\tat com.ibm.ws.kernel.feature.internal.FeatureManager$1.run(FeatureManager.java:686)\n\tat com.ibm.ws.threading.internal.ExecutorServiceImpl$RunnableWrapper.run(ExecutorServiceImpl.java:280)\n\tat java.base\/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n\tat java.base\/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n\tat java.base\/java.lang.Thread.run(Unknown Source)\n","ibm_objectDetails":"null\n","ibm_sequence":"1717153513359_0000000000002"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF1701I: The checking for security vulnerabilities is disabled.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.363+0000","ibm_messageId":"CWWKF1701I","module":"io.openliberty.reporting.internal.FixReportingComponent","loglevel":"INFO","ibm_sequence":"1717153513363_0000000000014","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF1037I: The server added the [eventLogging-1.0, localConnector-1.0, requestTiming-1.0] features to the existing feature set.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.382+0000","ibm_messageId":"CWWKF1037I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513382_0000000000015","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbLite-3.2, el-3.0, eventLogging-1.0, jaspic-1.1, jaxrs-2.1, jaxrsClient-2.1, jdbc-4.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, jsonb-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, managedBeans-1.0, requestTiming-1.0, servlet-4.0, ssl-1.0, webProfile-8.0, websocket-1.1].","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.382+0000","ibm_messageId":"CWWKF0012I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513382_0000000000016","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0013I: The server removed the following features: [appClientSupport-1.0, batch-1.0, concurrent-1.0, ejb-3.2, ejbHome-3.2, ejbPersistentTimer-3.2, ejbRemote-3.2, j2eeManagement-1.1, jacc-1.5, javaMail-1.6, javaee-8.0, jaxb-2.2, jaxws-2.2, jca-1.7, jcaInboundSecurity-1.0, jms-2.0, mdb-3.2, wasJmsClient-2.0, wasJmsSecurity-1.0, wasJmsServer-1.0].","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.383+0000","ibm_messageId":"CWWKF0013I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513383_0000000000017","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0008I: Feature update completed in 1.633 seconds.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.383+0000","ibm_messageId":"CWWKF0008I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"INFO","ibm_sequence":"1717153513383_0000000000018","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 2.854 seconds.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.383+0000","ibm_messageId":"CWWKF0011I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513383_0000000000019","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWPKI0803A: SSL certificate created in 1.107 seconds. SSL key file: \/opt\/ol\/wlp\/output\/defaultServer\/resources\/security\/key.p12","ibm_threadId":"0000002e","ibm_datetime":"2024-05-31T11:05:13.822+0000","ibm_messageId":"CWPKI0803A","module":"com.ibm.ws.ssl.config.WSKeyStore","loglevel":"AUDIT","ibm_sequence":"1717153513822_000000000001A","ext_thread":"Config-Thread-2"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"Successfully loaded default keystore: \/opt\/ol\/wlp\/output\/defaultServer\/resources\/security\/key.p12 of type: PKCS12","ibm_threadId":"0000002e","ibm_datetime":"2024-05-31T11:05:13.822+0000","module":"com.ibm.ws.ssl.config.WSKeyStore","loglevel":"INFO","ibm_sequence":"1717153513822_000000000001B","ext_thread":"Config-Thread-2"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.","ibm_threadId":"0000004b","ibm_datetime":"2024-05-31T11:05:13.873+0000","ibm_messageId":"CWWKO0219I","module":"com.ibm.ws.tcpchannel.internal.TCPPort","loglevel":"INFO","ibm_sequence":"1717153513873_000000000001C","ext_thread":"Default Executor-thread-15"}

$ podman exec logging-json cat /logs/messages.log
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"product = Open Liberty 24.0.0.5 (wlp-1.0.89.cl240520240506-1951)\nwlp.install.dir = \/opt\/ol\/wlp\/\nserver.output.dir = \/opt\/ol\/wlp\/output\/defaultServer\/\njava.home = \/opt\/java\/openjdk\njava.version = 11.0.22\njava.runtime = IBM Semeru Runtime Open Edition (11.0.22+7)\nos = Linux (5.14.0-352.el9.x86_64; amd64) (en_US)\nprocess = 1@10.0.2.100\nClasspath = \/opt\/ol\/wlp\/bin\/tools\/ws-server.jar\nJava Library path = \/opt\/java\/openjdk\/lib\/default:\/opt\/java\/openjdk\/lib:\/usr\/lib64:\/usr\/lib\n","ibm_datetime":"2024-05-31T11:05:10.656+0000","ibm_sequence":"1717153510657_0000000000001"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKE0001I: The server defaultServer has been launched.","ibm_threadId":"00000001","ibm_datetime":"2024-05-31T11:05:10.669+0000","ibm_messageId":"CWWKE0001I","module":"com.ibm.ws.kernel.launch.internal.FrameworkManager","loglevel":"AUDIT","ibm_sequence":"1717153510669_0000000000001","ext_thread":"main"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKG0093A: Processing configuration drop-ins resource: \/opt\/ol\/wlp\/usr\/servers\/defaultServer\/configDropins\/defaults\/keystore.xml","ibm_threadId":"00000026","ibm_datetime":"2024-05-31T11:05:11.675+0000","ibm_messageId":"CWWKG0093A","module":"com.ibm.ws.config.xml.internal.ServerXMLConfiguration","loglevel":"AUDIT","ibm_sequence":"1717153511675_0000000000002","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKG0093A: Processing configuration drop-ins resource: \/opt\/ol\/wlp\/usr\/servers\/defaultServer\/configDropins\/defaults\/open-default-port.xml","ibm_threadId":"00000026","ibm_datetime":"2024-05-31T11:05:11.690+0000","ibm_messageId":"CWWKG0093A","module":"com.ibm.ws.config.xml.internal.ServerXMLConfiguration","loglevel":"AUDIT","ibm_sequence":"1717153511690_0000000000003","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKE0002I: The kernel started after 1.219 seconds","ibm_threadId":"00000001","ibm_datetime":"2024-05-31T11:05:11.750+0000","ibm_messageId":"CWWKE0002I","module":"com.ibm.ws.kernel.launch.internal.FrameworkManager","loglevel":"INFO","ibm_sequence":"1717153511750_0000000000004","ext_thread":"main"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0007I: Feature update started.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:11.777+0000","ibm_messageId":"CWWKF0007I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"INFO","ibm_sequence":"1717153511777_0000000000005","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS0007I: The security service is starting...","ibm_threadId":"00000025","ibm_datetime":"2024-05-31T11:05:12.424+0000","ibm_messageId":"CWWKS0007I","module":"com.ibm.ws.security.ready.internal.SecurityReadyServiceImpl","loglevel":"INFO","ibm_sequence":"1717153512424_0000000000006","ext_thread":"Start Level: Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKZ0058I: Monitoring dropins for applications.","ibm_threadId":"00000027","ibm_datetime":"2024-05-31T11:05:12.473+0000","ibm_messageId":"CWWKZ0058I","module":"com.ibm.ws.app.manager.internal.monitor.DropinMonitor","loglevel":"AUDIT","ibm_sequence":"1717153512473_0000000000007","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.","ibm_threadId":"00000028","ibm_datetime":"2024-05-31T11:05:12.655+0000","ibm_messageId":"DYNA1001I","module":"com.ibm.ws.cache.ServerCache","loglevel":"INFO","ibm_sequence":"1717153512655_0000000000008","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"DYNA1071I: The cache provider default is being used.","ibm_threadId":"00000028","ibm_datetime":"2024-05-31T11:05:12.656+0000","ibm_messageId":"DYNA1071I","module":"com.ibm.ws.cache.ServerCache","loglevel":"INFO","ibm_sequence":"1717153512656_0000000000009","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"DYNA1056I: Dynamic Cache (object cache) initialized successfully.","ibm_threadId":"00000028","ibm_datetime":"2024-05-31T11:05:12.657+0000","ibm_messageId":"DYNA1056I","module":"com.ibm.ws.cache.CacheServiceImpl","loglevel":"INFO","ibm_sequence":"1717153512657_000000000000A","ext_thread":"Equinox start level thread - Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWPKI0802I: Creating the SSL certificate. This may take a few seconds.","ibm_threadId":"0000002e","ibm_datetime":"2024-05-31T11:05:12.715+0000","ibm_messageId":"CWPKI0802I","module":"com.ibm.ws.ssl.config.WSKeyStore","loglevel":"INFO","ibm_sequence":"1717153512715_000000000000B","ext_thread":"Config-Thread-2"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS4103I: Creating the LTPA keys. This may take a few seconds.","ibm_threadId":"0000003f","ibm_datetime":"2024-05-31T11:05:12.726+0000","ibm_messageId":"CWWKS4103I","module":"com.ibm.ws.security.token.ltpa.LTPAKeyInfoManager","loglevel":"INFO","ibm_sequence":"1717153512726_000000000000C","ext_thread":"Default Executor-thread-4"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. ","ibm_threadId":"00000025","ibm_datetime":"2024-05-31T11:05:12.739+0000","ibm_messageId":"CWWKS1123I","module":"com.ibm.ws.security.authentication.internal.jaas.JAASServiceImpl","loglevel":"INFO","ibm_sequence":"1717153512739_000000000000D","ext_thread":"Start Level: Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS1655I: The default Java Authentication SPI for Containers (JASPIC) AuthConfigFactory class com.ibm.ws.security.jaspi.ProviderRegistry is being used because the Java security property authconfigprovider.factory is not set. ","ibm_threadId":"00000025","ibm_datetime":"2024-05-31T11:05:12.808+0000","ibm_messageId":"CWWKS1655I","module":"com.ibm.ws.security.jaspi.AuthConfigFactoryWrapper","loglevel":"INFO","ibm_sequence":"1717153512808_000000000000E","ext_thread":"Start Level: Equinox Container: de978f88-69cf-4e90-bbbd-00e16024595a"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS4104A: LTPA keys created in 0.310 seconds. LTPA key file: \/opt\/ol\/wlp\/output\/defaultServer\/resources\/security\/ltpa.keys","ibm_threadId":"0000003f","ibm_datetime":"2024-05-31T11:05:13.036+0000","ibm_messageId":"CWWKS4104A","module":"com.ibm.ws.security.token.ltpa.LTPAKeyInfoManager","loglevel":"AUDIT","ibm_sequence":"1717153513036_000000000000F","ext_thread":"Default Executor-thread-4"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKS4105I: LTPA configuration is ready after 0.320 seconds.","ibm_threadId":"0000003f","ibm_datetime":"2024-05-31T11:05:13.046+0000","ibm_messageId":"CWWKS4105I","module":"com.ibm.ws.security.token.ltpa.internal.LTPAKeyCreateTask","loglevel":"INFO","ibm_sequence":"1717153513046_0000000000010","ext_thread":"Default Executor-thread-4"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host *  (IPv6) port 9080.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.289+0000","ibm_messageId":"CWWKO0219I","module":"com.ibm.ws.tcpchannel.internal.TCPPort","loglevel":"INFO","ibm_sequence":"1717153513289_0000000000011","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"FFDC1015I: An FFDC Incident has been created: \"java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 144\" at ffdc_24.05.31_11.05.13.0.log","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.356+0000","ibm_messageId":"FFDC1015I","module":"com.ibm.ws.logging.internal.impl.IncidentImpl","loglevel":"INFO","ibm_sequence":"1717153513356_0000000000012","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"FFDC1015I: An FFDC Incident has been created: \"java.lang.ClassNotFoundException: com.sun.tools.attach.VirtualMachine com.ibm.ws.jmx.connector.local.LocalConnectorActivator$LocalConnectorHelper$1 localConnectorInit\" at ffdc_24.05.31_11.05.13.1.log","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.360+0000","ibm_messageId":"FFDC1015I","module":"com.ibm.ws.logging.internal.impl.IncidentImpl","loglevel":"INFO","ibm_sequence":"1717153513360_0000000000013","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF1701I: The checking for security vulnerabilities is disabled.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.363+0000","ibm_messageId":"CWWKF1701I","module":"io.openliberty.reporting.internal.FixReportingComponent","loglevel":"INFO","ibm_sequence":"1717153513363_0000000000014","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF1037I: The server added the [eventLogging-1.0, localConnector-1.0, requestTiming-1.0] features to the existing feature set.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.382+0000","ibm_messageId":"CWWKF1037I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513382_0000000000015","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbLite-3.2, el-3.0, eventLogging-1.0, jaspic-1.1, jaxrs-2.1, jaxrsClient-2.1, jdbc-4.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, jsonb-1.0, jsonp-1.1, jsp-2.3, localConnector-1.0, managedBeans-1.0, requestTiming-1.0, servlet-4.0, ssl-1.0, webProfile-8.0, websocket-1.1].","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.382+0000","ibm_messageId":"CWWKF0012I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513382_0000000000016","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0013I: The server removed the following features: [appClientSupport-1.0, batch-1.0, concurrent-1.0, ejb-3.2, ejbHome-3.2, ejbPersistentTimer-3.2, ejbRemote-3.2, j2eeManagement-1.1, jacc-1.5, javaMail-1.6, javaee-8.0, jaxb-2.2, jaxws-2.2, jca-1.7, jcaInboundSecurity-1.0, jms-2.0, mdb-3.2, wasJmsClient-2.0, wasJmsSecurity-1.0, wasJmsServer-1.0].","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.383+0000","ibm_messageId":"CWWKF0013I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513383_0000000000017","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0008I: Feature update completed in 1.633 seconds.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.383+0000","ibm_messageId":"CWWKF0008I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"INFO","ibm_sequence":"1717153513383_0000000000018","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 2.854 seconds.","ibm_threadId":"00000033","ibm_datetime":"2024-05-31T11:05:13.383+0000","ibm_messageId":"CWWKF0011I","module":"com.ibm.ws.kernel.feature.internal.FeatureManager","loglevel":"AUDIT","ibm_sequence":"1717153513383_0000000000019","ext_thread":"Default Executor-thread-1"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWPKI0803A: SSL certificate created in 1.107 seconds. SSL key file: \/opt\/ol\/wlp\/output\/defaultServer\/resources\/security\/key.p12","ibm_threadId":"0000002e","ibm_datetime":"2024-05-31T11:05:13.822+0000","ibm_messageId":"CWPKI0803A","module":"com.ibm.ws.ssl.config.WSKeyStore","loglevel":"AUDIT","ibm_sequence":"1717153513822_000000000001A","ext_thread":"Config-Thread-2"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"Successfully loaded default keystore: \/opt\/ol\/wlp\/output\/defaultServer\/resources\/security\/key.p12 of type: PKCS12","ibm_threadId":"0000002e","ibm_datetime":"2024-05-31T11:05:13.822+0000","module":"com.ibm.ws.ssl.config.WSKeyStore","loglevel":"INFO","ibm_sequence":"1717153513822_000000000001B","ext_thread":"Config-Thread-2"}
{"type":"liberty_message","host":"7e5cc4a9367e","ibm_userDir":"\/opt\/ol\/wlp\/usr\/","ibm_serverName":"defaultServer","message":"CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.","ibm_threadId":"0000004b","ibm_datetime":"2024-05-31T11:05:13.873+0000","ibm_messageId":"CWWKO0219I","module":"com.ibm.ws.tcpchannel.internal.TCPPort","loglevel":"INFO","ibm_sequence":"1717153513873_000000000001C","ext_thread":"Default Executor-thread-15"}
```

## ログの設定変更

ログの指定は

- 環境変数
- bootstrap.properties
- server.xml

で変更できます。

ここで紹介している構成では、pod起動時の環境変数で指定しているのでpodの再作成で反映させてます。

logging-jsonを vi変更する手順例

```
podman rm -f logging-json
vi ./start-json.sh 
./start-json.sh
```

console.log:tbasic, messages.log:simple への変更例
```
$ cat ./start-json.sh 
docker run -e "WLP_LOGGING_CONSOLE_SOURCE=message,trace,accessLog,ffdc" \
           -e "WLP_LOGGING_CONSOLE_FORMAT=tbasic" \
           -e "WLP_LOGGING_CONSOLE_LOGLEVEL=info" \
           -e "WLP_LOGGING_MESSAGE_FORMAT=simple" \
           -e "WLP_LOGGING_MESSAGE_SOURCE=message" \
	   -d --name logging-json logging
```


bootstrap.properties や server.xml を変更する場合は podの /config に作成、編集してpodの再起動で反映できます。以下のコマンドでpodのシェルで対応しましょう。


RedHat系で pod に viを導入する場合

```
podman exec -it logging-json bash
dnf -y install vim-enhanced
```

Ubuntu系で pod に viを導入する場合
```
podman exec -u 0 -it logging-json bash
apt-get update
apt-get install vim
```

その後は通常ユーザーでログインしてファイルを編集しましょう
```
podman exec -it logging-json bash
```

# ログローテーション

podの場合は console.log ファイルはつくられませんが、ファイルの場合もローテーションはできないので、再起動までにログ量が大きくなってしまう場合は、ログレベルなどを調整します。

messages.log, trace.log は ここで使用しているサンプルでは server.xml で指定してあります。podの現在時刻を確認して、数分後の時間にするなどしてローテーションをためします。

```
(host)
$ podman exec -it logging-json bash

(pod)
$ date
Fri May 31 11:37:45 AM UTC 2024

$ vi /config/server.xml

$ grep roll /config/server.xml
      rolloverStartTime="11:39" rolloverInterval="1d" />

$ ls -al /logs/messages*
-rw-r-----. 1 default root 7736 May 31 11:38 /logs/messages_24.05.31_11.39.00.0.log
-rw-r-----. 1 default root  637 May 31 11:39 /logs/messages.log
```

変更した時間にファイルが切り替わりました。


# トラブルシューティング

毎度のことですが、よくつかう dockerコマンドを書いておきます。この文書でもpodman, dockerとまとまりがないですが、Linux では dockerがpodmanを呼び出すようになっていました。

```
docker ps # 動作中のContainer確認
docker logs -f logging-json # ログ確認
docker restart logging-json  # 再起動
docker inspect logging-json  # container 確認
docker exec -it logging-json  bash # Container内状況確認
```

など試してみましょう。logging-jsonの部分を docker ps で確認した container の別IDにすることでLiberty側も確認できます。

# まとめ

Libertyのログ出力と設定をしました。