Cloudflare Docs
Cloudflare-One
Visit Cloudflare Zero Trust on GitHub
Set theme to dark (⇧+D)

Activity logs

The Activity log allows you to see individual DNS queries made from your locations or, for paid subscribers, HTTP requests made from WARP clients. You can use the Activity log to investigate anomalies in your network. You can search by the DNS query or HTTP request and investigate each by clicking on a row.

Selective Logging

By default, Gateway logs all events, including DNS queries and HTTP requests that are allowed and not a risk. You can customize what type of events are logged by navigating to Settings > Network and indicating your preferences under Gateway Selective Logging.

Selective Logging

DNS logs

Gateway activity log

When you click on the row, you can see information related to the identity that is making the DNS request and attributes relevant to the DNS queries.

Gateway activity log expanded

Explanation of the fields

FieldDescription
RequestThe name of the domain that was queried.
Request typeThe DNS query type. This page contains a list of all the DNS query types.
ActionWhat Action Gateway applied. For example: Allowed, Blocked etc.
Source IPThe public source IP of the DNS request.
TimeThe timestamp of the DNS query.
LocationThe location from where the DNS query was made.
Protocol typeThe protocol that was used to make the DNS query.
PortThe port that was used to make the DNS request.
PoliciesThe name of the policy if it applies to the DNS request.
CategoriesCategory or categories associated with the DNS request.

HTTP logs

Explanation of the fields

FieldDescription
HostThe hostname in the HTTP header for the HTTP request.
MethodThe HTTP method used for the request (e.g., GET, POST, etc.)
DecisionThe Gateway action taken based on the first rule that matched. For example: Allowed, Blocked, Bypass, etc.
TimeThe timestamp of the HTTP request
URLThe full URL of the HTTP request
DeviceThe ID of the device that made the request. This is generated by the WARP client on the device that created the request.
RefererThe Referer request header contains the address of the page making the request.
User AgentThe user agent header sent in the request by the originating device.
File NameFile name string if a file transfer occurred or was attempted.
HTTP versionThe HTTP version of the origin that Gateway connected to on behalf of the user.
Policy detailsThe policy corresponding to the decision Gateway made based on the traffic criteria of the request.

Isolate requests

When a user creates a policy to isolate traffic, the initial request that triggers isolation will be logged as an Isolate decision and the is_isolated field will return false. This is because that initial request is not isolated yet — but it initiates an isolated session.

Since the request is generated in an isolated browser, the result is rendered in the isolated browser and rendered back to the user securely. This request and all subsequent requests in the isolated browser are logged to include the terminal Gateway action that gets applied (e.g. Allow / Block) and the is_isolated field as true.

Network logs

Explanation of the fields

FieldDescription
Source IPThe IP address of the user sending the packet.
Destination IPThe IP address of the packet’s target.
Source portThe source port number for the packet.
Destination portThe destination port number for the packet.
ProtocolThe protocol over which the packet was sent.
SNIThe host whose Server Name Indication (SNI) header Gateway will filter traffic against.
Policy nameThe name of the policy corresponding to the decision Gateway made.
Policy IDThe ID of the policy enforcing the decision Gateway made.
Device IDThe ID of the device that sent the packet. This is generated by the WARP client.
User IDThe ID of the user sending the packet. This is generated by the WARP client.
User emailThe email address of the user sending the packet. This is generated by the WARP client.
CategoriesCategory or categories associated with the packet.

Cloudflare logpush integration

You can configure the automatic export of logs from Cloudflare Gateway to third-party storage destinations or to security information and event management (SIEM) tools. Once exported, your team can analyze and audit the data as needed.

This feature builds on Cloudflare’s Logpush Service — check out the Logpush documentation to find a list of fields logged for both HTTP and DNS activity.

To enable this feature on the Zero Trust dashboard:

  1. Navigate to Logs > Logpush.
  2. Click Connect a service.
  3. Enter a Job name.
  4. From the drop-down menu, choose whether to export the Gateway DNS or the Gateway HTTP dataset.
  5. Next, select the data fields you want to export.
  6. In the Advanced settings card, choose the timestamp format you prefer, and whether you want to enable logs sampling.
  7. Click Next.
  8. Select the service you want to export your Gateway logs to.
  9. Next, follow the service-specific instructions on the Zero Trust UI to validate your destination.

The setup of your logpush integration is now complete. Logpush will send updated logs every five minutes to your selected destination.

You can configure multiple destinations and monitor for any issues by returning to the Logpush page.