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:
-
Validate the YAML configuration:
- Verify that
logforwarding.yamlandcdn.yamlfollow 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.
- Verify that
-
Check the health of the log-ingestion endpoint:
- Verify that the HTTPS endpoint is healthy and actively listening for
POSTrequests. - Verify that the endpoint path routes requests to the correct ingestion service.
- Confirm that the endpoint doesn’t return 503 Service Unavailable responses.
- Verify that the HTTPS endpoint is healthy and actively listening for
-
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.
-
Validate the authentication-header configuration:
- Use the
X-AEMaaCS-Log-Forwarding-Tokenheader with the provided token value. - Don’t add a
Bearerprefix unless the receiving endpoint specifically requires it.
- Use the
-
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.
-
If the log data doesn’t appear, review the endpoint availability and configuration for intermittent failures.
-
Rerun the Cloud Manager pipeline and verify that the deployment completes successfully.