Using the Kubernetes dashboard
- Go to the cluster list.
- Select your Kubernetes cluster.
- Use the Kubernetes Dashboard button to open the Kubernetes dashboard.
- Select the Kubernetes namespace where your application is deployed.
- To review the application logs from the container, select Pods, pod-name and Logs.
Using IBM Log Analysis with LogDNA
IBM Log Analysis with LogDNA is a third-party service that you can include as part of your IBM Cloud architecture to add log management capabilities. IBM Log Analysis with LogDNA is operated by LogDNA in partnership with IBM.
The service plan that you choose for an IBM Log Analysis with LogDNA instance defines the number of days that data is stored and retained in LogDNA. For example, if you choose the Free plan, data is not stored at all. However, if you choose the 7 day plan, data is stored for 7 days and you have access to it through the LogDNA Web UI.
Configure your cluster with LogDNA
- Switch to your personal IBM Cloud account.
- Create an instance of IBM Log Analysis with LogDNA from the catalog:
- Set the Service name to YOUR_IBM_ID-logdna.
- Select the location where your cluster is created. If the location is not in the list, pick Dallas (us-south).
- Use the default resource group.
- Click Create.
- In the Observability category, under Logging, locate the service instance you created.
- Click Edit log sources:
- Select Kubernetes as a source
- Run the listed commands against your Kubernetes cluster.
View logs in the LogDNA dashboard
- Click View LogDNA to open the LogDNA console
namespace:<namespace name>to view only the logs of the applications deployed to the specified namespace, such as
- As you go through the next steps, keep an eye on the LogDNA console for new log statements coming from your apps deployed in this namespace.
Find more about IBM Log Analysis with LogDNA in the IBM Cloud documentation.