You may encounter issues during application O&M. You can troubleshoot the issues by using logs. Enterprise Distributed Application Service (EDAS) provides various types of logs and allows you to view logs online or download logs.

Log types

EDAS provides the following types of logs for Elastic Compute Service (ECS) and Kubernetes clusters:

  • EDAS system logs (applicable to both ECS and Kubernetes clusters): You can use these logs to troubleshoot EDAS system issues. EDAS system logs are stored in the following directories that are added to favorites by default:

    • /home/admin/edas-agent/logs/: If an EDAS Agent exception occurs, you can view the logs in this directory to troubleshoot the issue.
    • /home/admin/edas-container/logs/: If a container exits or an application exception occurs, you can view the logs in this directory to troubleshoot the issue.
  • Business logs (applicable to both ECS and Kubernetes clusters): You can add the log directories that store business logs and the log files in these directories to favorites as required to troubleshoot business issues. For more information, see Add a log directory to favorites.

  • Logs configured in logging frameworks (applicable to both ECS and Kubernetes clusters): the EDAS system and business log files that are automatically extracted from processes when an application is running. They conform to logging frameworks, such as JDKLog and Log4J.

  • Real-time logs (applicable only to Kubernetes clusters): the standard output logs that are generated when Docker starts and runs. You can use these logs to troubleshoot pod issues.

View logs

After your application is deployed to an ECS cluster or a Container Service for Kubernetes (ACK) cluster, you can view logs in the EDAS console without the need to log on to the specific ECS instance. This makes it easier to troubleshoot the issues that may occur when the application runs.

EDAS allows you to view logs specific to an application or an ECS instance. Application logs support distributed search. For more information, see the following topics:

Download logs

In addition to viewing logs online, you can download logs to your on-premises devices. Then, you can view the logs or use log files as materials for application analysis and diagnosis.