Logging Information
How to retrieve logs on OpenShift from a solution?
In general, all logs of a solution are printed out to the console of each pod.
Retrieve logs via CLI
Identify pod of solution
oc get pods -n=runtime-dev
oc logs <pod>
Available options
To get logs of the function sidecar
where operations are run oc logs <pod> -c
function-sidecar
.
To get logs of the solution itself
oc logs <pod> -c solution
.
Retrieve logs via log aggregation on OpenShift (EFK)
If log aggregation of OpenShift is available
- Open OpenShift Management Platform
- Open Monitoring
- Open Logging
Helpful links
https://docs.openshift.com/container-platform/4.3/logging/cluster-logging.html