Getting Started

AEM as a Cloud Service

Send Adobe-managed CDN request logs to Honeylog with Log Forwarding and a Cloud Manager Config Pipeline.

Connect the Adobe-managed CDN through Cloud Manager Log Forwarding. This includes requests served from Adobe's CDN cache. You need access to Cloud Manager environment variables, the AEM configuration repository and Config Pipelines. Log Forwarding is unavailable in Adobe sandbox programs.

If you manage your own Apache server, use AEM Dispatcher (Apache). If your own CDN sits in front of Adobe, use that CDN's integration to include its cache hits. Collect each request once.

1. Add your Honeylog secret in Cloud Manager

Select your site in Honeylog and open Settings → Installation → AEM as a Cloud Service. Generate an ingestion secret there if the site needs one.

Select the target environment in Cloud Manager and open Configuration → Environment Variables → Add. Set Name to HONEYLOG_AUTHORIZATION, Type to Secret and Service Applied to All.

For Value, copy the complete authorization value from the private Honeylog installation page. It includes the Bearer prefix, one space and the site's secret. Store it only in the Cloud Manager secret variable. The configuration below references that variable.

2. Copy your Log Forwarding configuration

In Honeylog, click Copy YAML and add it as config/logForwarding.yaml in your AEM configuration repository. If the file already exists, merge the block into the existing configuration.

The private page fills in the configured ingestion host and the site's assigned ingestion domain or alias. It encodes the identifier once as a single URL segment, including any slash: for example, example.com/site-id becomes example.com%2Fsite-id. Use the generated URL as it is.

kind: "LogForwarding"
version: "1"
data:
  https:
    default:
      enabled: true
      url: "https://<ingestion-host>/aem/events/<site>"
      authHeaderName: "Authorization"
      authHeaderValue: "${{HONEYLOG_AUTHORIZATION}}"
    aem:
      enabled: false
    cdn:
      enabled: true

This forwards CDN request logs and leaves AEM application and Apache/Dispatcher log forwarding disabled for this destination. See Adobe's HTTPS Log Forwarding documentation.

Optional: include the Referer

This optional configuration lets Honeylog show the referring page when the browser sends the Referer header; CDN log collection already works with the configuration from step 2.

For a new file, copy the complete configuration below into config/cdn.yaml. If that file already exists, add only the honeylog-referer rule to data.requestTransformations.rules, preserving existing rules and metadata.

kind: "CDN"
version: "1"
data:
  requestTransformations:
    rules:
      - name: honeylog-referer
        when: "*"
        actions:
          - type: set
            logProperty: referer
            value: { reqHeader: referer }

If metadata.envTypes is present, include the target environment. See Adobe's custom CDN log properties.

You can apply logForwarding.yaml and cdn.yaml together with the same Config Pipeline.

3. Run a Config Pipeline

Commit the configuration to your AEM repository. Open Cloud Manager → Pipelines → Targeted Deployment → Config Pipeline, select the repository, branch, config folder and target environment, then run the pipeline.

Start with stage and a corresponding Honeylog test site. Add the secret in that environment. If the file uses metadata.envTypes, it must include the chosen environment, such as stage. See Adobe's Config Pipeline documentation.

4. Check that visits are arriving

Visit a public page on your website and note its path and the time of your visit. After Adobe forwards the logs, use Open Real Time Logs on the private installation page for that site, select a recent time range and look for a new entry with the same path and time.

The test succeeds when a new row matches your visit. A successful pipeline or an HTTP acknowledgement alone does not confirm that the visit was recorded. See the Real Time Logs guide.

No visit appeared?
  • Fastly challenge: the ingestion hostname must route GET /.well-known/fastly/logging/challenge to the Honeylog gateway and return HTTP 200 with *. This only validates the logging destination.
  • Secret: check that HONEYLOG_AUTHORIZATION is a Secret in the selected environment, with Service Applied set to All. Copy its complete value again from the private Honeylog installation page if needed.
  • Hostname: the same ingestion host must route POST /aem/events/<site> to the gateway. The public hostname in the CDN log must match this Honeylog site's domain or its www. variant. One endpoint records only the matching site when several domains share an AEM environment.
  • Batch accepted: HTTP 202 acknowledges a batch at the gateway. Ask the ingestion administrator to check the AEM consumer and hostname matching if no visit appears. Only the new row in Real Time Logs confirms the visit.
  • HTTP 413: ask the ingestion administrator to check proxy body limits and the gateway's AEM_MAX_BODY_BYTES, AEM_MAX_DECODED_BODY_BYTES and AEM_MAX_RECORDS_PER_REQUEST limits.