Gathering postmortem logs
The logs are gathered for upload to a support case.
The mustgather
script
For more information, See the following documents.
Gathering the pod logs
If the
mustgather
script fails, the pod logs can be gathered manually:- Kubernetes and Red Hat® OpenShift Get the logs from all analytics pods in your
environment. Use the
command:
where:kubectl -n <namespace> logs <analytics pod name> > <analytics pod name>.log
- <namespace> is the namespace of your analytics subsystem.
- <analytics pod name> is the name of the analytics pod. See the list of analytics pods.
The logs for each pod are written to the file <analytics pod name>.log. Upload all the generated logs to the support case.
Getting the OpenSearch cluster status
If the
mustgather
script fails you can use the toolkit CLI to get the status
of your OpenSearch cluster, and
a list of the indices.- Follow the steps to install and configure the toolkit CLI.
- Login to the CLI as the cloud admin
user:
apic login --server <platform api endpoint> --username admin --realm provider/default-idp-1
- Get the OpenSearch cluster
status
with:
apic --mode analytics clustermgmt:catIndices --server <platform api endpoint> --analytics-service <analytics service name> --format json
- Get the details of the OpenSearch indices
with:
apic --mode analytics clustermgmt:catIndices --server <platform api endpoint> --analytics-service <analytics service name> --format json