Pipeline deployment fails during HTTPS log-forwarding audit in AEM as a Cloud Service

This article explains how to resolve deployment failures in the AEM as a Cloud Service Cloud Manager pipeline that occur when enabling HTTPS log forwarding with advanced networking.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service
  • Cloud Manager configuration pipeline

Issue/Symptoms

  • The Cloud Manager pipeline fails when deploying the log-forwarding configuration.

  • The pipeline logs contain an error similar to:

    code language-none
    Error in config kind 'LogForwarding': credentials audit job failed for https: Error: https audit failed: request to
    
  • The pipeline logs contain the following timeout error:

    code language-none
    context deadline exceeded (Client.Timeout exceeded while awaiting headers)
    
  • The log-ingestion endpoint receives some credential-audit pings but intermittently returns 503 Service Unavailable responses during the audit.

Cause

This issue is typically caused by one or more of the following:

  • Misconfiguration in the logforwarding.yaml file, such as incorrect structure or unsupported parameters.
  • The external log ingestion endpoint is unavailable or intermittently returns HTTP 503 during credential audit checks.
  • The dedicated AEM egress IP is allow-listed, but Cloud Manager pipeline credential audits originate from dynamic IPs that cannot be allow-listed.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Validate the YAML configuration:

    • Verify that logforwarding.yaml and cdn.yaml follow the structure and formatting defined in the AEM as a Cloud Service documentation.
    • Use only supported parameters and sink types.
    • Don’t add custom log-type fields unless the log-ingestion endpoint specifically requires them.
  2. Check the health of the log-ingestion endpoint:

    • Verify that the HTTPS endpoint is healthy and actively listening for POST requests.
    • Verify that the endpoint path routes requests to the correct ingestion service.
    • Confirm that the endpoint doesn’t return 503 Service Unavailable responses.
  3. Allowlist the dedicated AEM egress IP:

    • Verify that the log-ingestion endpoint allows inbound connections from the dedicated AEM egress IP on the required TCP port.
    • Cloud Manager pipeline credential audits originate from dynamic IP addresses that can’t be allowlisted. Adobe doesn’t publish a CIDR range for these addresses.
  4. Validate the authentication-header configuration:

    • Use the X-AEMaaCS-Log-Forwarding-Token header with the provided token value.
    • Don’t add a Bearer prefix unless the receiving endpoint specifically requires it.
  5. After correcting the configuration and endpoint issues, monitor the log-ingestion service and verify that it receives log data rather than only credential-audit pings.

  6. If the log data doesn’t appear, review the endpoint availability and configuration for intermittent failures.

  7. Rerun the Cloud Manager pipeline and verify that the deployment completes successfully.

recommendation-more-help
experience-cloud-kcs-help-kbarticles