Access AEM Edge Function logs through streaming, forwarding, or Java-stack CDN logs

This article describes how to access and configure Adobe Edge Compute (Edge Function) logs in Cloud Manager, outlining available methods and environment-specific considerations.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service with AEM Edge Functions
  • Adobe Managed CDN
  • Java-stack environments and Edge Delivery Services sites

Issue/Symptoms

  • Edge Function runtime logs aren’t listed as a separate AEM service-log type in Cloud Manager.
  • You can’t configure log forwarding through a dedicated Edge Function logging screen in Cloud Manager; log forwarding uses configuration files and the applicable deployment pipeline.
  • No specific error message appears. The issue is finding the appropriate way to access or centralize Edge Function logs.

Cause

Edge Compute/Edge Function logs are not exposed in Cloud Manager in the same way as other logs. Instead, log streaming and log forwarding must be used to access these logs.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Use log streaming to access real-time logs for deployed Edge Functions. This approach is supported for all environments.
  2. To stream logs and view console.log output in your terminal, run the following command:
aio aem edge-functions tail-logs <function-name>
  1. Configure Edge Functions to use AEM Log Forwarding if you require centralized log management. Refer to the product documentation for configuration guidance.
  2. For Java-stack environments, download CDN logs from Cloud Manager. These logs include Edge Function log entries. This option is not available for Edge Delivery Services sites.
  3. Verify that Edge Function log entries are available in the configured log destination.
recommendation-more-help
experience-cloud-kcs-help-kbarticles