cli_ip field population in AEM Edge Delivery Services origin logs with Akamai CDN

This article explains how the cli_ip field is populated in Adobe Experience Manager (AEM) Edge Delivery Services origin logs when a customer-managed Akamai CDN is used in front of Adobe’s delivery tier, and outlines steps to ensure the true end-user IP address is captured.

Description description

When deploying a customer-managed Akamai CDN in front of Adobe’s delivery tier (such as Fastly) for AEM Edge Delivery Services, the cli_ip field in origin logs may not always reflect the true end-user IP address. Instead, it may log the IP address of the Akamai edge server or other intermediary services, depending on how client IP forwarding is configured. This can affect use cases that rely on accurate client IP data, such as geolocation, analytics, and auditing.

Environment

  • Adobe Experience Manager Edge Delivery Services (all versions)
  • Customer-managed Akamai CDN in front of Adobe’s delivery tier

Symptoms

The cli_ip field in EDS origin logs contains IP addresses that do not correspond to end-user devices, but rather to intermediary services (such as Akamai, New Relic, or Amazon).

Cause

When a customer-managed CDN sits in front of Adobe’s delivery tier, the direct connection to Adobe is from the CDN edge, not the end user. Unless the CDN is configured to forward the original client IP (typically via the X-Forwarded-For header) and Adobe’s delivery tier is set to trust and extract this header, the cli_ip field will not capture the true end-user IP.

Resolution resolution

Follow the steps below to resolve the issue.

  1. Review recent EDS origin logs and identify the IP addresses recorded in the cli_ip field.
  2. Use tools such as whois to determine whether these IPs belong to Akamai, other CDNs, or actual end users.
  3. In your Akamai configuration, ensure that the original client IP address is forwarded to the origin using the X-Forwarded-For (XFF) HTTP header. Refer to Akamai’s public documentation for guidance on enabling and customizing XFF header forwarding.
  4. Confirm that Adobe’s delivery tier is configured to trust and extract the client IP from the X-Forwarded-For header. Consult Adobe’s public documentation for header trust configuration prerequisites.
  5. After making any configuration changes, perform test requests from a known client IP and verify that the cli_ip field in EDS origin logs reflects the correct end-user IP. Repeat the whois check to confirm accuracy.
recommendation-more-help
experience-cloud-kcs-help-kbarticles