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
 
1 

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


2 

Open a console window.


3 

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/ ↵


4 

Enter the following:

# unzip nsp-log-collector.zip ↵

The following files are created in the current directory:

  • nsp-log-collector

  • README.txt


5 

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/ ↵


6 

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.


7 

Close the console window.

End of steps