If you need to create a log report for your tracking application, 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.
> $APIN_HOME/sbin/logreport.sh
NASTEL CURRENT LOGs ERROR REPORT:
------------------------------------------------------------------------
Total number of Errors per file, for AUTOPILOT LOGS:
DATE: Thu May 2 11:24:45 PM IST 2024
/opt/meshiq/platform/logs/log4j/apnet.log4j:0
/opt/meshiq/platform/logs/log4j/apnet_policies.log4j:0
/opt/meshiq/platform/logs/log4j/apnet_wgs.log4j:0
/opt/meshiq/platform/logs/log4j/DOMAIN_SERVER.log4j:8
/opt/meshiq/platform/logs/log4j/DOMAIN_SERVER_policies.log4j:0
/opt/meshiq/platform/logs/log4j/DOMAIN_SERVER_wgs.log4j:0
/opt/meshiq/platform/logs/log4j/pkgman.log4j:0
/opt/meshiq/platform/logs/log4j/pkgman_policies.log4j:0
/opt/meshiq/platform/logs/log4j/pkgman_wgs.log4j:0
/opt/meshiq/platform/logs/log4j/_policies.log4j:0
/opt/meshiq/platform/logs/log4j/QA-XRAY-1-5.log4j:16
/opt/meshiq/platform/logs/log4j/QA-XRAY-1-5_policies.log4j:0
/opt/meshiq/platform/logs/log4j/QA-XRAY-1-5_wgs.log4j:1
/opt/meshiq/platform/logs/log4j/_wgs.log4j:0
Total number Errors per file, for ALL OTHER LOGS:
DATE: Thu May 2 11:24:45 PM IST 2024
/opt/meshiq/logs/activemq/activemq.log:20
/opt/meshiq/logs/autopilot/aplogs/pkgman.log:0
/opt/meshiq/logs/kafka/kafkasrvlogs/kafka-request.log:0
/opt/meshiq/logs/kafka/kafkasrvlogs/kafka-authorizer.log:0
/opt/meshiq/logs/kafka/kafkasrvlogs/controller.log:0
/opt/meshiq/logs/kafka/kafkasrvlogs/state-change.log:0
/opt/meshiq/logs/kafka/kafkasrvlogs/server.log:0
/opt/meshiq/logs/kafka/kafkasrvlogs/log-cleaner.log:0
/opt/meshiq/logs/kafka/kafkasrvlogs/kafkaServer-gc.log:0
/opt/meshiq/logs/postgres.log:0
/opt/meshiq/logs/solr/solrlogs/solr.log:0
/opt/meshiq/logs/solr/solrlogs/solr-8983-console.log:0
/opt/meshiq/logs/solr/solrlogs/solr_gc.log:0
/opt/meshiq/logs/solr/solrlogs/solr_slow_requests.log:0
/opt/meshiq/logs/start_nastel.out:0
/opt/meshiq/logs/stop_nastel.out:0
/opt/meshiq/logs/tomcat/apweblogs/catalina.2024-04-17.log:0
/opt/meshiq/logs/tomcat/apweblogs/localhost.2024-04-17.log:0
/opt/meshiq/logs/tomcat/apweblogs/manager.2024-04-17.log:0
/opt/meshiq/logs/tomcat/apweblogs/host-manager.2024-04-17.log:0
/opt/meshiq/logs/tomcat/apweblogs/catalina.out:2
/opt/meshiq/logs/tomcat/apweblogs/catalina.2024-04-16.log:0
/opt/meshiq/logs/tomcat/apweblogs/localhost.2024-04-16.log:0
/opt/meshiq/logs/tomcat/apweblogs/manager.2024-04-16.log:0
/opt/meshiq/logs/tomcat/apweblogs/host-manager.2024-04-16.log:0
/opt/meshiq/logs/tomcat/apweblogs/navigator.log:0
/opt/meshiq/logs/zookeeper/logs/zookeeper-nastel-server-QA-xray-1-5.out:0
========================================================================
You may want to check these files based on above results:
=== --------------------- ===
/opt/meshiq/logs/activemq/activemq.log
/opt/meshiq/logs/autopilot/aplogs/log4j/QA-XRAY-1-5.log4j
/opt/meshiq/logs/autopilot/aplogs/log4j/QA-XRAY-1-5_wgs.log4j
/opt/meshiq/logs/autopilot/aplogs/log4j/DOMAIN_SERVER.log4j
/opt/meshiq/logs/tomcat/apweblogs/log4j/track.log4j
/opt/meshiq/logs/tomcat/apweblogs/catalina.out
------------------------------------------------------------------------
PERFORMING LOGS BACKUP:
Backup Completed.
Backup file: /opt/meshiq/logs/current.backup.logs.tar.Z
------------------------------------------------------------------------
If errors are found, a suggestion is included for you to check the relevant file. In the partial example below, 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.
/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
------------------------------------------------------------------------