Logpush integration
With Cloudflare’s Logpush service, you can configure the automatic export of Zero Trust logs 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.
To enable Logpush for Zero Trust logs:
- In Zero Trust ↗, go to Logs > Logpush.
- Select Add Logpush job.
- Enter a Job name.
- From the drop-down menu, choose the dataset to export.
- Next, select the data fields you want to include in the log.
- In Advanced settings, choose the timestamp format you prefer, and whether you want to enable logs sampling.
- Select Next.
- Select the service you want to export your logs to.
- Follow the service-specific instructions in Zero Trust 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 add additional fields to your logs by returning to the Logpush page.
Refer to the Logpush documentation for a list of available fields.
Dataset | Description |
---|---|
Gateway DNS | DNS queries inspected by Cloudflare Gateway |
Gateway HTTP | HTTP requests inspected by Cloudflare Gateway |
Gateway Network | Network packets inspected by Cloudflare Gateway |
Audit Logs | Authentication events through Cloudflare Access |
Access Requests | HTTP requests to sites protected by Cloudflare Access |
CASB Findings | Security issues detected by Cloudflare CASB |
Device Posture | Device posture status from the WARP client |
Session Logs | Network session logs for traffic proxied by Cloudflare Gateway |
Cloudflare Gateway logs DNS query information in resource record format ↗, a Base64-encoded binary format. The following resource record fields are available for each query:
- Query name
- Query type
- Query class
- Response TTL
- Response data
To parse resource record logs from Logpush, run the following Python script with your desired samples:
The script will print a list of your samples. For example: