The oc (OpenShift CLI) logs include the container logs of one previous boot. If you seek additional boot information, log into the node and navigate to the 'cs-container' directory.


Syntax:
[root@blr-pc5-ocp2-comp20 ~]# cd /var/log/pods/<pod_name>_<pod_id>/<container_name>/


Examples:
[root@blr-pc5-ocp2-comp20 ~]# cd /var/log/pods/
cert-manager-csi-driver_cert-manager-csi-driver-mmsp2_743a67cd-e4aa-4ec6-9493-dd779342cad1/
cluster-network-addons_ovs-cni-amd64-6r54b_7c97ed50-31dd-4a06-a8dd-40d65366df75/
metallb-system_speaker-php6s_250a4495-af09-42d8-b71b-0bcf027f5665/
openshift-ceph-storage_csi-rbdplugin-zxztn_91526e5d-f867-4807-bc9f-fbdc6cdbb31c/
openshift-cluster-node-tuning-operator_tuned-dkzpz_627b9e72-1bef-4232-8443-55dbd620ad23/
openshift-dns_dns-default-kqsl6_633398a7-3839-4fc4-99cf-cd00ce02e720/
openshift-dns_node-resolver-9dtwl_b8e5cb8c-c639-418c-b745-1b90638b3066/
openshift-image-registry_node-ca-r9x4b_c8b486ed-a5fc-4a4b-a845-a46eb92ca1ac/
openshift-ingress-canary_ingress-canary-8b2wz_d1695102-1ab0-47cc-bc61-31b288ca1daa/
openshift-kni-infra_coredns-blr-pc5-ocp2-comp20.blr-ocp2.lab.rbbn.com_1729b0b0593023c9d073c60eceff1b08/
openshift-kni-infra_keepalived-blr-pc5-ocp2-comp20.blr-ocp2.lab.rbbn.com_31e3e73e7e26d87a03f01eb79eb78228/
openshift-logging_collector-5ckhq_c383b05b-d3b7-43d4-8abb-59ef6de110dd/
openshift-logging_elasticsearch-cd-j4y397gq-1-6965457b44-brwld_3bd89b43-83dd-43eb-a7ca-0534cca7aedc/
openshift-machine-config-operator_machine-config-daemon-c52p2_a229f24c-40de-43b0-99f1-0c55cb7c62cc/
openshift-monitoring_node-exporter-mvv5n_3e704eaa-6679-4702-a96f-7a830fec874c/
openshift-multus_multus-additional-cni-plugins-bs848_c8a4c157-4e4c-4f42-9e4d-0aa4e3606fe4/
openshift-multus_multus-zfdgn_58ceca3a-b7c8-4a1a-b09f-c1b7953d30b0/
openshift-multus_network-metrics-daemon-pfkxd_d272db3d-3ee8-4845-9c1d-52ecf3f43d91/
openshift-multus_whereabouts-reconciler-hvt8m_228bb2e1-f9bd-4f6d-b67c-cec86a558fd9/
openshift-network-diagnostics_network-check-target-9wm8g_3d6bae37-a925-4e69-a01a-57bbe59c694c/
openshift-nmstate_nmstate-handler-vblz8_35f1d20f-e99f-4fdd-b462-16a641e63c97/
openshift-operators_istio-cni-node-v2-4-fgnxf_e6454da2-03c1-4597-8712-3990f60f197f/
openshift-sdn_sdn-467h7_aa46e823-2577-44af-a775-4d1ba62047f1/
openshift-sriov-network-operator_sriov-device-plugin-zlk57_83c884e1-ed7c-4251-817d-f415c10dce70/
openshift-sriov-network-operator_sriov-network-config-daemon-tmr7k_6e0b3afa-b11c-4f36-8f7f-8ffd8884a40d/
plft-core-dump_plft-core-dump-handler-4v8xf_803014ed-9c5d-4409-b06f-0406218125bd/
sbc-svt-perf_jdpsx-ocp2-primary-etcd-0-0_7bb72174-46c5-4fd6-b6fc-9e0b0d2fc682/
sbc-svt-perf_jdpsx-ocp2-primary-psx-primary-0_06d6455f-7ddf-4394-bb40-8c8b8f5c86a0/
sbc-svt-perf_jdsbc121ocp2-cache-1_bcc3e896-1e31-400c-843f-1ecc1932b357/
sbc-svt-perf_jdsbc121ocp2-cache-proxy-5cdcd647fc-ddmwc_9fc7ee4f-be17-4fac-b229-417c53a2c438/
sbc-svt-perf_jdsbc121ocp2-cs-6d4d8b64b8-vxbbc_5c1725e4-9f19-46b8-850d-95b48622a756/
sbc-svt-perf_jdsbc121ocp2-hpa-59f795bb4f-79jj6_0c9dfac6-dc1f-4fab-98f9-32d6ee90dd24/
sbc-svt-perf_jdsbc121ocp2-oam-95bdbcf95-l89rt_3c1948de-e606-4a02-8cf5-bd9d83d67552/
sbc-svt-perf_jdsbc121ocp2-rac-69f64dd9fc-st9rm_2dec4dab-3459-4019-825a-44b86bb5c1ee/
sbc-svt-perf_jdsbc121ocp2-rs-69bc7b55f8-p9rcj_ad74f089-a84a-447b-aa0f-e00189080d20/
sbc-svt-perf_jdsbc121ocp2-sc-6bcd5cdbb8-fnddv_f1cc29c0-0a67-4025-b04b-0fa9c17989de/
[root@blr-pc5-ocp2-comp20 ~]#
 
[root@blr-pc5-ocp2-comp20 ~]# cd /var/log/pods/sbc-svt-perf_jdsbc121ocp2-cs-6d4d8b64b8-vxbbc_5c1725e4-9f19-46b8-850d-95b48622a756/
cs-container/         oamproxy-container/   pvclogger-container/  rbbn-telemetry-agent/
[root@blr-pc5-ocp2-comp20 ~]#
 
[root@blr-pc5-ocp2-comp20 ~]# cd /var/log/pods/sbc-svt-perf_jdsbc121ocp2-cs-6d4d8b64b8-vxbbc_5c1725e4-9f19-46b8-850d-95b48622a756/cs-container/
[root@blr-pc5-ocp2-comp20 cs-container]# ls
0.log
[root@blr-pc5-ocp2-comp20 cs-container]#
 
container logs with multiple restarts -
[root@blr-pc5-ocp2-comp20 cs-container]# ls /var/log/pods/openshift-sriov-network-operator_sriov-network-config-daemon-tmr7k_6e0b3afa-b11c-4f36-8f7f-8ffd8884a40d/sriov-cni/
0.log  10.log  1.log  2.log  3.log  4.log  5.log  6.log  7.log  8.log  9.log
[root@blr-pc5-ocp2-comp20 cs-container]#
  • No labels