If you need to create a log report for XRay, run the following procedure:
$APIN_HOME/sbin/logreport.sh
An example of the execution of this script is shown below.
Note that the total number of errors found in each log file is shown in the output.
In this example, 319 errors were found in the Zookeeper log file, and a message is provided to tell the user to check the content of that file.
> $APIN_HOME/sbin/logreport.sh
NASTEL CURRENT LOGs ERROR REPORT:
------------------------------------------------------------------------
Total number of Errors per file, for AUTOPILOT LOGS:
DATE: Wed May 11 22:33:15 CEST 2022
/opt/nastel/AutoPilotM6/logs/log4j/XRAY_HOSTNAME.log4j:0
/opt/nastel/AutoPilotM6/logs/log4j/XRAY_HOSTNAME_policies.log4j:0
Total number Errors per file, for ALL OTHER LOGS:
DATE: Wed May 11 22:33:15 CEST 2022
/opt/nastel/logs/activemq/activemq.log:0
/opt/nastel/logs/kafka/kafkasrvlogs/kafka-request.log:0
/opt/nastel/logs/kafka/kafkasrvlogs/kafka-authorizer.log:0
/opt/nastel/logs/kafka/kafkasrvlogs/controller.log:0
/opt/nastel/logs/kafka/kafkasrvlogs/state-change.log:0
/opt/nastel/logs/kafka/kafkasrvlogs/log-cleaner.log:0
/opt/nastel/logs/kafka/kafkasrvlogs/server.log:0
/opt/nastel/logs/postgres.log:0
/opt/nastel/logs/solr/solrlogs/solr-8983-console.log:0
/opt/nastel/logs/solr/solrlogs/solr.log:0
/opt/nastel/logs/start_nastel.out:0
/opt/nastel/logs/tomcat/apweblogs/catalina.out:0
/opt/nastel/logs/tomcat/apweblogs/catalina.2022-05-11.log:0
/opt/nastel/logs/tomcat/apweblogs/localhost.2022-05-11.log:0
/opt/nastel/logs/tomcat/apweblogs/manager.2022-05-11.log:0
/opt/nastel/logs/tomcat/apweblogs/host-manager.2022-05-11.log:0
/opt/nastel/logs/zookeeper/zookeeper.log:319
========================================================================
You may want to check these files based on above results:
=== --------------------- ===
/opt/nastel/logs/zookeeper/zookeeper.log
------------------------------------------------------------------------
PERFORMING LOGS BACKUP:
Backup Completed.
Backup file: /opt/nastel/logs/current.backup.logs.tar.Z
------------------------------------------------------------------------