How do I restore the NSP OpenSearch log data?

Purpose

Perform this procedure to restore legacy NSP OpenSearch log data from a backup.

Note: If the kubeconfig files in /opt/nsp/nsp-configurator/kubeconfig on the NSP deployer host contain an expired certificate, enter the following command to resynchronize the kubeconfig files from the NSP cluster; see How do I update nsp_kubeconfig on the NSP deployer host?.

./nspk8sctl update --kubeconfig ↵

The nsp-log-collector tool is run from the Deployer VM.

Steps
 

Log in as the root or NSP admin user on the NSP deployer VM.


Open a console window.


Navigate to the log collector directory and extract the archive:

cd /opt/nsp/NSP-CN-DEP-release-ID/NSP-CN-release-ID/tools/support/logCollector/ ↵


Enter the following:

unzip nsp-log-collector.zip ↵

The following files are created in the current directory:

  • nsp-log-collector

  • README.txt


After the files are extracted, enter the following:

cd /opt/nsp/NSP-CN-DEP-release-ID/NSP-CN-release-ID/tools/support/logCollector/nsp-log-collector-release-ID/bin/ ↵


Enter the following to back up all collected OpenSearch log data:

./nsp-log-collector.sh --postAll backup_file

where backup_file is the absolute path of the backup file

The log data files are extracted to the specified location.


Close the console window.

End of steps