Policy violations
Shortly after you configure Page Shield policies, the Cloudflare dashboard will start displaying any violations of those policies. This information will be available for policies with any action (Allow and Log).
Information about policy violations is also available via GraphQL API and Logpush.
The policy violation information is available in Security > Page Shield > Policies. It includes the following:
- A sparkline next to the policy name, showing policy violations in the past seven days.
- For policies with associated violations, an expandable details section for each policy, with the top resources present in policy violation events and a sparkline per top resource.
Use the Cloudflare GraphQL API to obtain policy violation information through the following dataset:
pageShieldReportsAdaptiveGroups
You can query the dataset for policy violations occurred in the past 30 days.
Use introspection to explore the available fields the GraphQL schema. For more information, refer to Explore the GraphQL schema.
For an introduction to GraphQL querying, refer to Querying basics.
Example curl request
Cloudflare Logpush supports pushing logs to storage services, SIEM systems, and log management providers.
Information about Page Shield policy violations is available in the page_shield_events
dataset.
For more information on configuring Logpush jobs, refer to Logs: Get started.