Skip to content

Commit 698dd62

Browse files
Updated details
1 parent 569a755 commit 698dd62

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/content/docs/ai-gateway/observability/logpush.mdx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ sidebar:
88

99
import { Render } from "~/components";
1010

11-
AI Gateway allows you to securely export logs to an external storage location, where you can decrypt and process them. This guide explains how to set up Logpush for AI Gateway, generate an RSA key pair for encryption, and decrypt the logs once they are received.
11+
AI Gateway allows you to securely export logs to an external storage location, where you can decrypt and process them.
12+
You can toggle Logpush on and off in the [Cloudflare dashboard](https://dash.cloudflare.com) settings.
13+
14+
This guide explains how to set up Logpush for AI Gateway, generate an RSA key pair for encryption, and decrypt the logs once they are received.
1215
Logpush has a limit of 4 jobs. If you have reached the [limit of logs stored for your plan](/ai-gateway/reference/limits/), logs will not be exported through Logpush.
1316

1417
<Render file="limits-increase" product="ai-gateway" />
@@ -46,13 +49,21 @@ console.log(publicKey);
4649
console.log(privateKey);
4750
```
4851

52+
This script will output your RSA privateKey and publicKey. Keep the private key secure, as it will be used to decrypt the logs.
53+
4954
## 2. Upload public key to gateway settings
5055

51-
Once you have generated the key pair, upload the public key to your AI Gateway settings. This key will be used to encrypt your logs.
56+
Once you have generated the key pair, upload the public key to your AI Gateway settings. This key will be used to encrypt your logs. For more information on Logpush refer to [Logs](/logs/get-started/).
57+
58+
:::note[Note]
59+
You should enable Logpush in AI Gateway settings. This option only shows up when logs are enabled.
60+
You can toggle on or off as needed. If you do not have logs turned on nothing will be saved.
61+
62+
:::
5263

5364
## 3. Receive encrypted logs
5465

55-
After configuring Logpush, logs will be sent encrypted using the public key you uploaded. To access the data, you will need to decrypt it using your private key.
66+
After configuring Logpush, logs will be sent encrypted using the public key you uploaded. To access the data, you will need to decrypt it using your private key. The logs will be sent to the object storage provider that you have selected.
5667

5768
## 4. Decrypting logs
5869

0 commit comments

Comments
 (0)