Skip to content

Commit d98b52c

Browse files
committed
Add dataset partial
1 parent 834598e commit d98b52c

File tree

3 files changed

+48
-41
lines changed

3 files changed

+48
-41
lines changed

src/content/docs/cloudflare-one/insights/logs/index.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ head:
88
content: Zero Trust logs
99
---
1010

11-
import { DirectoryListing, Badge } from "~/components";
11+
import { DirectoryListing, Badge, Render } from "~/components";
1212

1313
Review detailed logs for your Zero Trust organization.
1414

@@ -32,7 +32,11 @@ Cloudflare Zero Trust logs are stored for a varying period of time based on the
3232

3333
## Log Explorer <Badge text="Beta" variant="caution" size="small" />
3434

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. For more information, refer to [Log Explorer](/logs/log-explorer/).
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:
36+
37+
<Render file="log-explorer-account-datasets" product="logs" />
38+
39+
For more information, refer to [Log Explorer](/logs/log-explorer/).
3640

3741
## Customer Metadata Boundary
3842

src/content/docs/logs/log-explorer.mdx

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar:
77
text: Beta
88
---
99

10-
import { TabItem, Tabs } from "~/components";
10+
import { TabItem, Tabs, Render } from "~/components";
1111

1212
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.
1313

@@ -26,13 +26,7 @@ Log Explorer is available at the account and zone level. At the zone level, data
2626

2727
At the account level, the datasets available are:
2828

29-
- [Access requests](/logs/reference/log-fields/account/access_requests/) (`FROM access_requests`)
30-
- [CASB Findings](/logs/reference/log-fields/account/casb_findings/) (`FROM casb_findings`)
31-
- [Device posture results](/logs/reference/log-fields/account/device_posture_results/) (`FROM device_posture_results`)
32-
- [Gateway DNS](/logs/reference/log-fields/account/gateway_dns/) (`FROM gateway_dns`)
33-
- [Gateway HTTP](/logs/reference/log-fields/account/gateway_http/) (`FROM gateway_http`)
34-
- [Gateway Network](/logs/reference/log-fields/account/gateway_network/) (`FROM gateway_network`)
35-
- [Zero Trust Network Session Logs](/logs/reference/log-fields/account/zero_trust_network_sessions/) (`FROM zero_trust_network_sessions`)
29+
<Render file="log-explorer-account-datasets" product="logs" />
3630

3731
## Authentication
3832

@@ -54,8 +48,6 @@ Authentication with the API can be done via an authentication header or API toke
5448

5549
- `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.
5650

57-
58-
5951
## Enable Log Explorer
6052

6153
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:
150142

151143
```json
152144
{
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": []
165157
}
166158
```
167159

@@ -177,23 +169,23 @@ Which returns the following request details:
177169

178170
```json
179171
{
180-
"result": [
181-
{
182-
"createdat": "2025-01-14T18:17:55Z",
183-
"appdomain": "example.com",
184-
"appuuid": "a66b4ab0-ccdf-4d60-a6d0-54a59a827d92",
185-
"action": "login",
186-
"allowed": true,
187-
"country": "us",
188-
"rayid": "90fbb07c0b316957",
189-
"email": "[email protected]",
190-
"ipaddress": "1.2.3.4",
191-
"useruid": "52859e81-711e-4de0-8b31-283336060e79"
192-
}
193-
],
194-
"success": true,
195-
"errors": [],
196-
"messages": []
172+
"result": [
173+
{
174+
"createdat": "2025-01-14T18:17:55Z",
175+
"appdomain": "example.com",
176+
"appuuid": "a66b4ab0-ccdf-4d60-a6d0-54a59a827d92",
177+
"action": "login",
178+
"allowed": true,
179+
"country": "us",
180+
"rayid": "90fbb07c0b316957",
181+
"email": "[email protected]",
182+
"ipaddress": "1.2.3.4",
183+
"useruid": "52859e81-711e-4de0-8b31-283336060e79"
184+
}
185+
],
186+
"success": true,
187+
"errors": [],
188+
"messages": []
197189
}
198190
```
199191

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
{}
3+
---
4+
5+
- [Access requests](/logs/reference/log-fields/account/access_requests/) (`FROM access_requests`)
6+
- [CASB Findings](/logs/reference/log-fields/account/casb_findings/) (`FROM casb_findings`)
7+
- [Device posture results](/logs/reference/log-fields/account/device_posture_results/) (`FROM device_posture_results`)
8+
- [Gateway DNS](/logs/reference/log-fields/account/gateway_dns/) (`FROM gateway_dns`)
9+
- [Gateway HTTP](/logs/reference/log-fields/account/gateway_http/) (`FROM gateway_http`)
10+
- [Gateway Network](/logs/reference/log-fields/account/gateway_network/) (`FROM gateway_network`)
11+
- [Zero Trust Network Session Logs](/logs/reference/log-fields/account/zero_trust_network_sessions/) (`FROM zero_trust_network_sessions`)

0 commit comments

Comments
 (0)