Configure request logging

This page shows you how to configure request logging for Media CDN.

Enable logs

Logging is disabled by default to minimize the data stored. Logs are routed, filtered, and stored in Cloud Logging.

  • Enable logging for a specific Media CDN service:

    gcloud edge-cache services update SERVICE_NAME \
       --enable-logging \
       --logging-sample-rate=1.0
    
  • Disable logging:

    gcloud edge-cache services update SERVICE_NAME \
       --no-enable-logging