Platform health and logs
CWM is a microservice-based application that leverages Kubernetes cluster architecture as its runtime environment. The health of the CWM application can thus be checked using Kubernetes commands.
Note |
To see all the supported |
Check pod status
Procedure
Step 1 |
Using a command-line terminal, log in to the OS on your virtual machine with SSH:
|
Step 2 |
To check status of pods for namespace
|
Step 3 |
A list of pods will appear: |
Step 4 |
If a pod has a status different from
The pod will be deleted, but as Kubernetes configuration is declarative, it will effectively recreate the deleted pod and rerun it. |
Check and collect logs
Application logs can be checked with Loki logCLI command-line interface. To gather logs from the CWM platform, follow these steps:
Procedure
Step 1 |
Using a command-line terminal, connect to the system using SSH client:
|
||
Step 2 |
After successful login, use the command below to list all running pods:
Example result:
|
||
Step 3 |
Identify the logcli tool available in the |
||
Step 4 |
Connect to the correct pod and list the available log labels for filtering:
|
||
Step 5 |
Gather logs from all applications running in the
|
||
Step 6 |
Similarly, collect logs from other namespaces, using different files for convenience:
|
||
Step 7 |
Use the SCP tool to copy the log files from the system to your desktop:
|
||
Step 8 |
Finally, you can send the logs to support and provide a detailed description of the issue you are experiencing.
|