How to See the Application logs in Pod

1/3/2019

We are moving towards Microservice and using K8S for cluster orchestration. We are building infra using Dynatrace and Prometheus server for metrics collection but they are yet NOT in good shape. Our Java Application on one of the Pod is not working. I want to see the application logs.

How do I access these logs?

-- dotnetavalanche
kubernetes

1 Answer

1/3/2019

Assuming the application logs to stdout/err, kubectl logs -n namespacename podname.

-- coderanger
Source: StackOverflow