Logs for the Container Gateway in OpenShift

This topic describes how to use the oc logs command to view the stdout logs of a running POD.
gateway93
This topic describes how to use the
oc logs
command to view the
stdout
logs of a running POD.
Contents:
Viewing Logs
To display logs, use the following
oc logs
command, where 
container-gateway-dc
 is the name of the Deployment Configuration defined in your OpenShift deployment YML file.
$ oc logs --follow dc/container-gateway-dc
The following is an example of the output:
$ oc logs --follow dc/container-gateway-dc Using MySQL database SSG_DATABASE_WAIT_TIMEOUT set to 300 seconds. SSG_JVM_HEAP will be 4096m SSG_CLUSTER_HOST will be localhost Waiting for one of the databases to come up... Liquibase 'status' Successful Liquibase Update Successful Starting gateway in foreground Dec 06, 2017 12:07:07 AM com.l7tech.util.JdkLoggerConfigurator configure CONFIG: Logging initialized from '/opt/SecureSpan/Gateway/node/default/etc/conf/ssglog.properties', with defaults from 'jar:file:/opt/SecureSpan/Gateway/runtime/Gateway.jar!/com/l7tech/server/resources/logging.properties' Dec 06, 2017 12:07:08 AM com.l7tech.server.boot.GatewayBoot start INFO: Starting CA API Gateway 9.3.00 build 7794, built 20171129122140 by teamcity at apim-teamcityagent16 Dec 06, 2017 12:07:08 AM com.l7tech.server.boot.GatewayBoot e INFO: Database type: mysql Dec 06, 2017 12:07:08 AM com.l7tech.server.boot.GatewayBoot e INFO: Starting gateway in TRADITIONAL mode Dec 06, 2017 12:07:08 AM com.l7tech.server.boot.GatewayBoot e INFO: Enabled component: [com/l7tech/server/resources/uddiRuntimeContext.xml, com/l7tech/server/resources/uddiAdminContext.xml] Dec 06, 2017 12:07:10 AM com.l7tech.server.SystemProperties setSystemProperties ...
Aggregating Logs
As an OpenShift cluster administrator, you can deploy the EFK (Elasticsearch + Fluentd + Kibana) stack to aggregate logs for a range of OpenShift Container Platform services.