You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**Access logs**| 24 hours | 30 days | 30 days | 24 hours | 180 days |
25
+
|**DNS logs**| 24 hours | 30 days | 24 hours | 30 days | 180 days[^1]|
26
+
|**Network logs**| 24 hours | 30 days | 24 hours | 30 days | 30 days |
27
+
|**HTTP logs**| 24 hours | 30 days | 24 hours | 30 days | 30 days |
28
+
|**DEX logs**| 7 days | 7 days | 7 days | 7 days | 7 days |
29
+
|**Device posture logs**| 30 days | 30 days | 30 days | 30 days | 30 days |
30
+
31
+
[^1]: Enterprise users on per query plans cannot store DNS logs via Cloudflare. You can still export logs via [Logpush](/cloudflare-one/insights/logs/logpush/). For more information, contact your account team.
32
+
33
+
## Log Explorer <Badgetext="Beta"variant="caution"size="small" />
34
+
35
+
Log Explorer users can store Zero Trust logs directly within Cloudflare in an [R2 bucket](/r2/) and access them with the dashboard or API. Log Explorer supports the following Zero Trust datasets:
|[Gateway DNS](/logs/reference/log-fields/account/gateway_dns/)| DNS queries inspected by Cloudflare Gateway |
43
-
|[Gateway HTTP](/logs/reference/log-fields/account/gateway_http/)| HTTP requests inspected by Cloudflare Gateway |
44
-
|[Gateway Network](/logs/reference/log-fields/account/gateway_network/)| Network packets inspected by Cloudflare Gateway |
45
-
|[Audit Logs](/logs/reference/log-fields/account/audit_logs/)| Authentication events through Cloudflare Access |
46
-
|[Access Requests](/logs/reference/log-fields/account/access_requests/)| HTTP requests to sites protected by Cloudflare Access |
47
-
|[CASB Findings](/logs/reference/log-fields/account/casb_findings/)| Security issues detected by Cloudflare CASB |
48
-
|[Device Posture](/logs/reference/log-fields/account/device_posture_results/)| Device posture status from the WARP client |
49
-
|[Session Logs](/logs/reference/log-fields/account/zero_trust_network_sessions/)| Network session logs for traffic proxied by Cloudflare Gateway |
50
-
|[SSH Logs](/logs/reference/log-fields/account/ssh_logs/)| SSH command logs for [Access for Infrastructure targets](/cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/)|
38
+
Refer to [Logpush log fields](/logs/reference/log-fields/) for a list of all available fields.
|[Access Requests](/logs/reference/log-fields/account/access_requests/)| HTTP requests to sites protected by Cloudflare Access |
43
+
|[Audit Logs](/logs/reference/log-fields/account/audit_logs/)| Authentication events through Cloudflare Access |
44
+
|[CASB Findings](/logs/reference/log-fields/account/casb_findings/)| Security issues detected by Cloudflare CASB |
45
+
|[Device Posture Results](/logs/reference/log-fields/account/device_posture_results/)| Device posture status from the WARP client |
46
+
|[DLP Forensic Copies](/logs/reference/log-fields/account/dlp_forensic_copies/)| Entire HTTP requests or payloads of HTTP requests captured by [Cloudflare DLP](/cloudflare-one/policies/data-loss-prevention/dlp-policies/logging-options/)|
47
+
|[Gateway DNS](/logs/reference/log-fields/account/gateway_dns/)| DNS queries inspected by Cloudflare Gateway |
48
+
|[Gateway HTTP](/logs/reference/log-fields/account/gateway_http/)| HTTP requests inspected by Cloudflare Gateway |
49
+
|[Gateway Network](/logs/reference/log-fields/account/gateway_network/)| Network packets inspected by Cloudflare Gateway |
50
+
|[SSH Logs](/logs/reference/log-fields/account/ssh_logs/)| SSH command logs for [Access for Infrastructure targets](/cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/)|
51
+
|[Zero Trust Network Session Logs](/logs/reference/log-fields/account/zero_trust_network_sessions/)| Network session logs for traffic proxied by Cloudflare Gateway |
Log Explorer enables you to store and explore your Cloudflare logs directly within the Cloudflare Dashboard or API. Giving you visibility into your logs without the need to forward them to third parties. Logs are stored on Cloudflare's global network using the R2 object storage platform and can be queried via the Dashboard or SQL API.
13
13
@@ -26,13 +26,7 @@ Log Explorer is available at the account and zone level. At the zone level, data
@@ -54,8 +48,6 @@ Authentication with the API can be done via an authentication header or API toke
54
48
55
49
-`Authorization: Bearer <API_TOKEN>` To create an appropriately scoped API token, refer to [Create API token](/fundamentals/api/get-started/create-token/) documentation. Copy and paste the token into the authorization parameter for your API call.
56
50
57
-
58
-
59
51
## Enable Log Explorer
60
52
61
53
In order for Log Explorer to begin storing logs, you need to enable the desired datasets. You can do this via the dashboard or the API.
@@ -150,18 +142,18 @@ Which returns the following HTTP request details:
150
142
151
143
```json
152
144
{
153
-
"result": [
154
-
{
155
-
"clientrequestscheme": "https",
156
-
"clientrequesthost": "example.com",
157
-
"clientrequestmethod": "GET",
158
-
"clientrequestuseragent": "curl/7.88.1",
159
-
"edgeresponsestatus": 200
160
-
}
161
-
],
162
-
"success": true,
163
-
"errors": [],
164
-
"messages": []
145
+
"result": [
146
+
{
147
+
"clientrequestscheme": "https",
148
+
"clientrequesthost": "example.com",
149
+
"clientrequestmethod": "GET",
150
+
"clientrequestuseragent": "curl/7.88.1",
151
+
"edgeresponsestatus": 200
152
+
}
153
+
],
154
+
"success": true,
155
+
"errors": [],
156
+
"messages": []
165
157
}
166
158
```
167
159
@@ -177,23 +169,23 @@ Which returns the following request details:
0 commit comments