Question
1
Replies
61
Views
Virtusa Corporation
Posted: July 20, 2018
Last activity: July 23, 2018
How to scan Pega logs across servers
Hi,
How to create a utility which accepts 2 parameters start and end time to scan a Pega log file across application servers. After the jar file deployment is completed i would like to run this utility to scan Pega logs for import status or identifying any errors.
Any thoughts please.
Regards,
Praveen.
1. Write a utility (Java or Shell or any other languages) to scan PegaRULES.log with start time and end-time as parameters to filter the log file entries.
2. Have your utility scan for the below highlighted keywords in a particular order for evaluating the success of Rules import. (Eg: Importing PegaDeveloperActual.jar)
New File Name:PegaDeveloperActual.jar
Operation Status: Preparing to start import...
Operation Status: Preparing archive
Created new restore point:
Operation Status: Importing Instances
and mainly look for below phrase
Processed XX of XX (100.00%)
Import summary for PegaDeveloperActual.jar
Operation Status: Import Complete
3. During the course of reading log entries for the start and end times, if you encounter any of the below keywords without getting (100.00%) or Import Complete, then you can categorize it is a failure.
"FATAL ERROR" , "ERROR", "Exception", "PegaArchiveException"