INTEGRITY Cloudflare Docs

Analytics and logs

Consider the sections below to learn how to access analytics and logs for your DNS Firewall.

Analytics

DNS Firewall analytics allow you to evaluate data about DNS queries to your account.

Availability and limits

The historical data available covers 62 days and the maximum time interval you can get data for is also 62 days.

Dashboard

For a quick summary, view your DNS Firewall analytics on the dashboard. The DNS analytics dashboard contains four main panels. The filters and time frame that you specify at the top of the page apply to all of them.

In the Cloudflare dashboard, go to the DNS Firewall Analytics page.

Go to Analytics ↗

Available dimensions

Panels

The filters and time frame that you specify at the top of the page apply to all of the available panels.

GraphQL

Use the GraphQL API to access DNS Firewall analytics. Refer to the GraphQL Analytics API documentation for guidance on how to get started.

The DNS Firewall analytics has two schemas:

API Legacy

You can also use the DNS Firewall API reports endpoint.


Logs

You can set up Logpush to deliver DNS Firewall logs to a storage service, SIEM, or log management provider.

Response reasons

When analyzing why Cloudflare DNS Firewall responded in one way or another to a specific query, consider the responseReason log field.

The following table provides a description for each of the values that might be returned as a response reason:

Value Description
success Response was successfully served, either from Cloudflare cache or forwarded from the upstream.
upstream_failure Response could not be fetched from the upstream due to the upstream failing to respond.
upstream_servfail Response could not be fetched from the upstream due to the upstream responding with SERVFAIL.
invalid_query Query is invalid and cannot be processed.
any_type_blocked Query of type ANY was blocked according to your DNS Firewall settings (RFC 8482).
rate_limit Query was rate limited according to your DNS Firewall settings.
chaos_success Response for Chaos class was successfully served.
attack_mitigation_block Query was blocked as part of random prefix attack mitigation.
unknown There was an unknown error.