B.9 Checking the Log File of a Specific Pod/Container using Command Line

Issue: You want to check the log file of a specific pod/container using command line.

Workaround: To check the log files of the pods of dashboard-web-app, dashboard-metadata-web-app, Hercules-management, use the following command:

kubectl logs –f –n <namespace> <pod_name> -c <container_name>

Example:

kubectl logs -f -n arcsight-installer-htzzp dashboard-web-app-57f4675759-m6zbk -c dashboard-web-app