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
Copy file name to clipboardExpand all lines: src/content/docs/logs/get-started/enable-destinations/r2.mdx
+60-6Lines changed: 60 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,37 @@ sidebar:
8
8
9
9
import { Render } from"~/components"
10
10
11
-
Cloudflare Logpush supports pushing logs directly to R2via the Cloudflare dashboard or via API.
11
+
Cloudflare Logpush supports pushing logs directly to R2. You can do so via the automatic setup (Cloudflare creates an R2 bucket for you), or you can create your own R2 bucket with the custom setup. The automatic setup is ideal for quickly setting up a bucket or for testing purposes. Instead, use the custom setup if you need full control over the configuration.
12
12
13
13
For more information about R2, refer to the [Cloudflare R2](/r2/) documentation.
14
14
15
+
## Automatic setup
16
+
17
+
If you want to use the automatic setup for your logpush job:
18
+
19
+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login).
20
+
21
+
2. Select the Enterprise account or domain (also known as zone) you want to use with Logpush. Depending on your choice, you have access to [account-scoped datasets](/logs/reference/log-fields/account/) and [zone-scoped datasets](/logs/reference/log-fields/zone/), respectively.
22
+
23
+
3. Go to **Analytics & Logs** > **Logpush**.
24
+
25
+
4. Select **Create a Logpush job**.
26
+
27
+
5. Select **R2 Object Storage - automatic** as destination.
28
+
29
+
6. Next, select the dataset and the storage region you want to use.
30
+
31
+
7. To finalize, select **Create Logpush job**.
32
+
33
+
Your setup should now be complete. If you require full control over the configuration, consider using the custom setup instead.
34
+
35
+
## Custom setup
36
+
37
+
Cloudflare Logpush supports pushing logs directly to R2 via the Cloudflare dashboard or via API.
38
+
15
39
Before getting started:
16
40
17
-
* Create an R2 bucket and set up R2 API tokens.
41
+
- Create an R2 bucket and set up R2 API tokens.
18
42
19
43
1. Go to the R2 UI > **Create bucket**.
20
44
@@ -26,11 +50,11 @@ Before getting started:
26
50
27
51
5. Copy the Secret Access Key and Access Key ID. You will need these when setting up your Logpush job.
28
52
29
-
* Ensure that you have the following permissions:
53
+
- Ensure that you have the following permissions:
30
54
31
-
* R2 write, Logshare Edit.
55
+
- R2 write, Logshare Edit.
32
56
33
-
## Manage via the Cloudflare dashboard
57
+
###Manage via the Cloudflare dashboard
34
58
35
59
<Renderfile="enable-logpush-job" />
36
60
@@ -58,7 +82,7 @@ When you are done entering the destination details, select **Continue**.
58
82
59
83
10. Select **Submit** once you are done configuring your logpush job.
60
84
61
-
## Manage via API
85
+
###Manage via API
62
86
63
87
To create a job, make a `POST` request to the Logpush jobs endpoint with the following fields:
0 commit comments