Download CDN logs

To download the CDN logs, follow these steps:

  1. Log into Cloud Manager at my.cloudmanager.adobe.com and select your organization and program.

  2. For a desired AEMCS environment, select Download Logs from the ellipsis menu.

    Download Logs - Cloud Manager

  3. In the Download Logs dialog, select the Publish Service from the drop-down menu, then click the download icon next to the CDN row.

    CDN Logs - Cloud Manager

If the downloaded log file is from today the file extension is .log otherwise for past log files the extension is .log.gz.

Analyze downloaded CDN logs

To gain insights such as cache hit ratio, and top URLs of MISS and PASS cache types, analyze the downloaded CDN log file. These insights help to optimize the CDN cache configuration and enhance the site performance.

To analyze the CDN logs, this tutorial presents three options:

  1. Elasticsearch, Logstash, and Kibana (ELK): The ELK dashboard tooling can be installed locally.
  2. Splunk: The Splunk dashboard tooling requires access to Splunk and AEMCS log forwarding enabled to ingest the CDN logs.
  3. Jupyter Notebook: It can be accessed remotely as part of Adobe Experience Platform without installing additional software, for customers who have licensed Adobe Experience Platform.

Option 1: Using ELK dashboard tooling

The ELK stack is a set of tools that provide a scalable solution to search, analyze, and visualize the data. It consists of Elasticsearch, Logstash, and Kibana.

To identify the key details, let’s use the AEMCS-CDN-Log-Analysis-Tooling project. This project provides a Docker container of the ELK stack and a pre-configured Kibana dashboard to analyze the CDN logs.

  1. Follow the steps from How to set up the ELK Docker container and make sure to import the CDN Cache Hit Ratio Kibana dashboard.

  2. To identify the CDN cache hit ratio and top URLs, follow these steps:

    1. Copy the downloaded CDN log file/s inside the environment-specific logs folder, for example, ELK/logs/stage.

    2. Open the CDN Cache Hit Ratio dashboard by clicking the top-left corner Navigation Menu > Analytics > Dashboard > CDN Cache Hit Ratio.

      CDN Cache Hit Ratio - Kibana Dashboard

    3. Select the desired time range from the top-right corner.

      Time Range - Kibana Dashboard

    4. The CDN Cache Hit Ratio dashboard is self-explanatory.

    5. The Total Request Analysis section displays the following details:

      • Cache ratios by cache type
      • Cache counts by cache type

      Total Request Analysis - Kibana Dashboard

    6. The Analysis by Request or Mime Types displays the following details:

      • Cache ratios by cache type
      • Cache counts by cache type
      • Top MISS and PASS URLs

      Analysis by Request or Mime Types - Kibana Dashboard