When you troubleshoot or debug applications deployed in Container Service for Kubernetes (ACK) clusters, file logs provide direct visibility into application behavior. Enterprise Distributed Application Service (EDAS) integrates with Simple Log Service (SLS) to collect these logs automatically. After you enable the log feature during application creation or deployment, view and query the collected file logs in the EDAS console.
Prerequisites
Before you begin, make sure that you have:
An active Simple Log Service subscription
At least 0.25-core CPU and 25 MB memory available per application instance for the log collection agent
The SLS log feature enabled for your application during creation or deployment in an ACK cluster
The log feature must be enabled when you create or deploy the application. To enable the log feature, see Use an image to deploy a Java microservices application in a Kubernetes cluster or Use a JAR or WAR package to deploy an application in an ACK cluster.
View file logs in the EDAS console
-
Log on to the EDAS console.
-
In the left-side navigation pane, choose .
In the top navigation bar, select the region where your application is deployed.
In the upper part of the Applications page, select the microservices namespace, then click the application name.
In the left-side navigation pane, click Logs, then click the File Logs tab.
Find the target log entry and click View File Log in the Actions column. The SLS console opens with the log data ready for querying and analysis.
What's next
Query and analyze logs -- learn SLS query syntax to filter, search, and analyze your file logs
Use an image to deploy a Java microservices application in a Kubernetes cluster -- enable the log feature during image-based deployment
Use a JAR or WAR package to deploy an application in an ACK cluster -- enable the log feature during package-based deployment