Skip to content

Commit 9def541

Browse files
committed
ZRZ-1495 Add docs for logpush
1 parent f828b04 commit 9def541

File tree

2 files changed

+64
-9
lines changed

2 files changed

+64
-9
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
pcx_content_type: how-to
3+
title: Logpush
4+
sidebar:
5+
order: 11
6+
---
7+
8+
import { Plan } from "~/components";
9+
10+
Send Zaraz logs to an external storage provider like R2, S3, etc.
11+
12+
This is an Enterprise only feature.
13+
14+
## Setup
15+
16+
To configure logpush support for Zaraz please follow these steps
17+
18+
### 1. Create a logpush job
19+
20+
Navigate to your Website (Zone) and from the left side side bar find **Analytics and Logs**.
21+
22+
Under this **Analytics and Logs** section navigate to **Logpush**
23+
24+
Click on **Create a Logpush Job** and follow the steps described in the [Logpush documentation](https://developers.cloudflare.com/logs/get-started/).
25+
26+
When it comes to selecting a dataset please make sure to select **Zaraz Events**
27+
28+
### 2. Enable Logpush from Zaraz settings
29+
30+
Navigate to your website's [Zaraz settings](https://dash.cloudflare.com/?to=/:account/:zone/zaraz/settings)
31+
32+
Enable **Export Zaraz Logs**.
33+
34+
## Fields
35+
36+
Logs will have the following fields
37+
38+
| Field | Type | Description |
39+
| -------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
40+
| RequestHeaders | `JSON` | The headers that were sent with the request. |
41+
| URL | `String` | The Zaraz URL to which the request was made to. |
42+
| IP | `String` | The originating IP. |
43+
| Body | `JSON` | The body that was sent along with the request. |
44+
| Event Type | `String` | The Event type that occured. Can be one of the following: `server_request`, `server_response`, `action_triggered`, `ecommerce_triggered`, `client_request`, `component_error`. |
45+
| Event Details | `JSON` | Details about the event. |
46+
| TimestampStart | `String` | The time at which the event occured. |

src/content/docs/zaraz/reference/settings.mdx

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ title: Settings
44
head:
55
- tag: title
66
content: Zaraz settings
7-
87
---
98

9+
import { Plan } from "~/components";
10+
1011
To configure Zaraz's general settings, select [**Zaraz**](https://dash.cloudflare.com/?to=/:account/:zone/zaraz) > **Settings**. Make sure you save your changes, by selecting the **Save** button after making them.
1112

1213
## Workflow
@@ -37,15 +38,15 @@ When you toggle Single Page Application support off, the `pageview` trigger will
3738

3839
Zaraz offers privacy settings you can configure, such as:
3940

40-
* **Remove URL query parameters**: Removes all query parameters from URLs. For example, `https://example.com/?q=hello` becomes `https://example.com/`.
41+
- **Remove URL query parameters**: Removes all query parameters from URLs. For example, `https://example.com/?q=hello` becomes `https://example.com/`.
4142

42-
* **Trim IP addresses**: Trims part of the IP address before passing it to server-side loaded tools, to hide it from third-parties.
43+
- **Trim IP addresses**: Trims part of the IP address before passing it to server-side loaded tools, to hide it from third-parties.
4344

44-
* **Clean User Agent strings**: Clear sensitive information from the User Agent string by removing information such as operating system version, extensions installed, among others.
45+
- **Clean User Agent strings**: Clear sensitive information from the User Agent string by removing information such as operating system version, extensions installed, among others.
4546

46-
* **Remove external referrers**: Hides the page referrers URL if the hostname is different from the website's.
47+
- **Remove external referrers**: Hides the page referrers URL if the hostname is different from the website's.
4748

48-
* **Cookie domain**: Choose the domain on which Zaraz will set your tools' cookies. By default, Zaraz will attempt to save the cookies on the highest-level domain possible, meaning that if your website is on `foo.example.com`, the cookies will be saved on `example.com`. You can change this behavior and configure the cookies to be saved on `foo.example.com` by entering a custom domain here.
49+
- **Cookie domain**: Choose the domain on which Zaraz will set your tools' cookies. By default, Zaraz will attempt to save the cookies on the highest-level domain possible, meaning that if your website is on `foo.example.com`, the cookies will be saved on `example.com`. You can change this behavior and configure the cookies to be saved on `foo.example.com` by entering a custom domain here.
4950

5051
## Injection
5152

@@ -85,10 +86,18 @@ Choose whether to prevent Zaraz from loading on suspected bot-initiated requests
8586

8687
The options are:
8788

88-
* **Block none**: Load Zaraz for all requests, even if those come from bots.
89-
* **Block automated only**: Prevent Zaraz from loading on requests from requests in the [**Automated** category](/bots/concepts/bot-score/#bot-groupings).
90-
* **Block automated and likely automated**: Prevent Zaraz from loading on requests from requests in the [**Automated** and **Likely Automated** category](/bots/concepts/bot-score/#bot-groupings).
89+
- **Block none**: Load Zaraz for all requests, even if those come from bots.
90+
- **Block automated only**: Prevent Zaraz from loading on requests from requests in the [**Automated** category](/bots/concepts/bot-score/#bot-groupings).
91+
- **Block automated and likely automated**: Prevent Zaraz from loading on requests from requests in the [**Automated** and **Likely Automated** category](/bots/concepts/bot-score/#bot-groupings).
9192

9293
### Context Enricher
9394

9495
Refer to the [Context Enricher](/zaraz/advanced/context-enricher/) for more information on this setting.
96+
97+
### Logpush
98+
99+
<Plan type="enterprise" />
100+
101+
Send Zaraz events logs to an external storage service.
102+
103+
Refer to the [Context Enricher](/zaraz/advanced/logpush/) for more information on this setting.

0 commit comments

Comments
 (0)