How do I restore the NSP Elasticsearch log data?

Purpose

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

Steps
 

Log in as the root user on a station that has the downloaded NSP_DEPLOYER_R_r.tar.gz file.


Navigate to the directory that contains the NSP_DEPLOYER_R_r.tar.gz file.


Enter the following:

tar xvf NSP_DEPLOYER_R_r.tar.gz *nsp-log-collector.zip *README.txt ↵

The nsp-log-collector.zip file and a README.txt file are extracted to the following directory path below the current directory:

NSP-CN-DEP-release-ID/NSP-CN-release-ID/tools/support/logCollector

Note: The README.txt contains information about using the backup utility.


Log in as the root or NSP admin user on the NSP cluster host:


Open a console window.


Transfer the extracted nsp-log-collector.zip and README.txt files to the current directory.


Transfer the Elasticsearch backup .zip file to the NSP cluster host.


Enter the following:

unzip nsp-log-collector.zip ↵

The following files are created in the current directory:

  • nsp-log-collector

  • nsp-log-collector.bat


After the fils are extracted, enter the following:

cd nsp-log-collector-release-ID/bin ↵


10 

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

./nsp-log-collector --postAll backup_file

where backup_file is the absolute path of the backup file

The log data files are extracted to the specified location.


11 

Close the console window.

End of steps