How do I restore the NSP Elasticsearch log data?

Purpose

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

Steps
 
1 

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


2 

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


3 

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.


4 

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


5 

Open a console window.


6 

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


7 

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


8 

Enter the following:

# unzip nsp-log-collector.zip ↵

The following files are created in the current directory:

  • nsp-log-collector

  • nsp-log-collector.bat


9 

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