Viewing Logs

Any build or deployment logs emitted to standard output or standard error (e.g., console.log(...)) are captured by CloudStation to be viewed or searched later.

There are three types of logs in CloudStation:

  • Log Insight: Provides insights for services of a project.
  • Live Log: Allows checking live applicative logs for real-time insights and selecting time ranges for historical data.
  • Logs per Deployment: Logs specific to each deployment.

Log Insight

Log Insight provides detailed logs for services within a project. This is useful for debugging and monitoring the overall health of your services.

To access Log Insight:

  1. Navigate to your Workspace .
  2. Select Log Insight tab in the top navigation.

Log Insight

Filters and Search Features

Log Insight offers various filters and search features to help you find specific logs:

  • Search by Keyword: Enter a keyword or phrase to filter logs containing that text.
  • Select Time Range: Choose a specific date or select a quick format like the last 1 or 2 hours to view logs within that time frame.
  • Sort Logs: Sort logs from latest to newest or vice versa.
  • Filter by Service: Select a specific service to view logs related to that service.

Live Log

Live Log allows you to check live applicative logs for real-time insights. You can also select time ranges to view historical data.

To access Live Log:

  1. Click on your service.
  2. Select Live Log.

Live Log

Importance of Live Log

Live Log is crucial for real-time monitoring and debugging. It allows you to see the current state of your application and quickly identify issues as they occur. This is particularly useful during active development and when troubleshooting live incidents.

Logs per Deployment

Logs for a specific deployment can be viewed by clicking on the deployment in the service window. This is useful when debugging application failures.

To access Logs per Deployment:

  1. Click on a deployment in the dashboard.
  2. View the logs in the deployment tab View Logs

Deployment Logs

Importance of Logs per Deployment

Logs per Deployment are essential for understanding the build and deployment process. They help you identify issues that occur during these stages and ensure that your deployments are successful. This is particularly useful for CI/CD pipelines and automated deployments.

Filtering Logs

CloudStation supports a custom filter syntax that can be used to query logs in both Live Log and Log Insight.

  • Search by Keyword: Enter a keyword or phrase to filter logs containing that text.
  • Select Time Range: Choose a specific date or select a quick format like the last 1 or 2 hours to view logs within that time frame.
  • Sort Logs: Sort logs from latest to newest or vice versa.
  • Filter by Service: Select a specific service to view logs related to that service.

Edit this file on GitHub