User Tools

Site Tools


support:logs_backup_process

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
support:logs_backup_process [2016/08/15 17:14] mmccsupport:logs_backup_process [2021/06/25 10:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Logs Backup Process ======
  
 +Author: Michelle McCausland
 +
 +When an outage occurs it is important to run the outage scripts that we have in place. These outage scripts take a backup of all relevant logs, heap and thread dumps and store them in a secure location to be used for investigation later.
 +
 +Some support items which are not outage related will require the logs in order to investigate further. It is important for those creating the support tickets to identify these tickets and back up logs accordingly.
 +
 +While it is possible to run the outage scripts to just back up the logs, this can only be done for the current day and cannot be run for a date in the past.
 +
 +Relevant support logs should be backed up to:
 +
 +/export/home/scotty/backup/support_logs>
 +
 +And should be zipped and named with the support ticket reference e.g.
 +
 +CCSUPPORT-1234.zip
 +
 +The reference to the location of these files should then be added to the associated support ticket for reference once the ticket has been assigned.
 +
 +This file should be removed after a suitable period of the support ticket being closed out.
 +
 +----
 +
 +===== How to Backup the logs =====
 +
 +  * Log into an app handler i.e. qaerrigalapps1.crc
 +  * Navigate to the logs directory: /export/home/scotty/logs/grails
 +  * Perform an ls command - **ls** or **ls -lh** or **ls -latrh** to view the files
 +  * Create a folder to store your logs in the backup/support_scripts directory > **mkdir CCSUPPORT-1234**
 +  * Copy the relevant logs into this folder > cp nameOfLogFile destination  > **cp NocPortal.log.2016-07-12 /export/home/scotty/backup/support_logs/CCSUPPORT-1234**
 +  * Zip up the folder > **tar -czvf CCSUPPORT-1234.tar.gz /export/home/scotty/backup/support_logs/CCSUPPORT-1234**
 +  * Ensure the zipped file has appeared in the support_logs directory correctly with data > ls -latrh / ls - lh
 +  * Note the location and the file name on the associated support ticket for reference once the ticket has been assigned
 +
 +Some useful links:
 +
 +http://www.cyberciti.biz/faq/mv-command-howto-move-folder-in-linux-terminal/
 +
 +http://www.cyberciti.biz/faq/creating-a-tar-file-linux-command-line/