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
AI Gateway allows you to securely export logs to an external storage location, where you can decrypt and process them.
12
12
You can toggle Logpush on and off in the [Cloudflare dashboard](https://dash.cloudflare.com) settings.
13
13
14
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.
15
15
16
-
You can store up to 10 million logs per gateway. If your limit is reached, new logs will stop being saved and will not be exported through Logpush. To continue saving and exporting logs, you must delete older logs to free up space for new logs. Logpush has a limit of 4 jobs.
16
+
You can store up to 10 million logs per gateway. If your limit is reached, new logs will stop being saved and will not be exported through Logpush. To continue saving and exporting logs, you must delete older logs to free up space for new logs. Logpush has a limit of 4 jobs.
17
17
18
18
:::note[Note]
19
19
@@ -27,9 +27,14 @@ To configure Logpush for AI Gateway, follow these steps:
27
27
28
28
## 1. Generate an RSA key pair locally
29
29
30
-
You need to generate a key pair to encrypt and decrypt the logs. This script will output your RSA privateKey and publicKey. Keep the private key secure, as it will be used to decrypt the logs. Below is a sample script to generate the keys using Node.js.
30
+
You need to generate a key pair to encrypt and decrypt the logs. This script
31
+
will output your RSA privateKey and publicKey. Keep the private key secure, as
32
+
it will be used to decrypt the logs. Below is a sample script to generate the
You can verify the contents of the generated keys by using the following commands:
80
+
81
+
- To view the private key:
82
+
83
+
```bash
84
+
cat private_key.pem
85
+
```
86
+
87
+
- To view the public key:
88
+
89
+
```bash
90
+
cat public_key.pem
91
+
```
92
+
93
+
</TabItem> </Tabs>
57
94
58
95
## 2. Upload public key to gateway settings
59
96
60
-
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. In order to enable Logpush, you will need logs enabled for that gateway.
97
+
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. In order to enable Logpush, you will need logs enabled for that gateway.
0 commit comments