# Access Violation Logs

## Prerequisites

Before you can view Page Shield violation logs, you must:

- Configure at least one Page Shield policy in the zone.
- Have access to the Log Center. For details, see [Start Log Center](https://help.salesforce.com/s/articleView?id=cc.b2c_start_log_center.htm\&type=5).

## View Log Center Violation Logs

In the Log Center, specify a **Service Type** of **ecdn** to restrict the search. This provides violation logs and audit logs with details of when and how a policy was changed.

![Log Center Service Type ecdn](https://a.sfdcstatic.com/developer-website/sfdocs/commerce-cloud/media/commerce-api/ecdn-log-center-search.png)

Audit logs contain both old and new policy information, for example:

- Old value:
  ```json
  {"action":"allow","description":"Page shield Test Policy Allow-Non Payment",
  "enabled":true,
  "expression":"(http.host contains \"/shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"cart\") or (http.host contains \"shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"checkout\")",
  "value":"script-src cquotient.com _.cquotient.com paypal.com _.paypal.com salesforce.com _.salesforce.com sfcc-store-internal.net _.sfcc-store-internal.net stripe.com _.stripe.com",
  "id":"d01673584c044c699782bd99b453dd5b"},
  ```
- New value:
  ```json
  {"action":"allow","description":"Page shield Test Policy Allow-Non Payment",
  "enabled":false,"expression":"(http.host contains \"/shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"cart\") or (http.host contains \"shop.stg.bcxg.sfcc-store-internal.net\" and http.request.full_uri contains \"checkout\")",
  "value":"script-src stripe.com _.stripe.com",
  "id":"d01673584c044c699782bd99b453dd5b"}
  ```

![Log Center example log entries and details](https://a.sfdcstatic.com/developer-website/sfdocs/commerce-cloud/media/commerce-api/ecdn-log-center-example1.png)

![ Log Center example log entries and details](https://a.sfdcstatic.com/developer-website/sfdocs/commerce-cloud/media/commerce-api/ecdn-log-center-example2.png)

![ Log Center example log entries and details](https://a.sfdcstatic.com/developer-website/sfdocs/commerce-cloud/media/commerce-api/ecdn-log-center-example3.png)
