Extracting logs if the nbwsapp or log-viewer pods are down
In order to extract the logs out of Cloud Scale when the nbwsapp or log-viewer pods are down, copy the logs out of the fluentbit-collector pod. You can tar and compress the logs before extraction or extract them immediately.
(Optional) Tar up the files you want to extract. Select a folder and run the following command:
$ tar -cvf <name of tar> <name of folder>
For example, $ tar -cvf 2024-02-03.tar 2024-02-03/
Copy the files out of the container. Exit the container with a simple exit command and run the following command:
$ kubectl cp -n netbackup <pod-name>:/usr/openv/fluentbit/logs/<folder or tar> <output folder or tar>
(Optional) Extract the tar outside the container if necessary using the following command:
$ tar xvf <output tar>
If the fluentbit-collector pod is down, then logs can be extracted directly from the log locations on the application pods using the similar commands.