Skip to content

Commit 7e6c7df

Browse files
daisyfaithaumakathayl
authored andcommitted
[AIG]Added autolog description (#17901)
* Added autolog description * edited url * edited url * Update index.mdx * Update limits.mdx * edited url --------- Co-authored-by: Kathy <[email protected]>
1 parent cdcce25 commit 7e6c7df

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/content/docs/ai-gateway/observability/logging/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/
5454
}
5555
'
5656
```
57+
58+
## Auto Log Cleanup
59+
60+
Enable Auto Log Cleanup to automatically delete the oldest logs once the default storage limit of 10 million logs is reached, ensuring that new logs are always saved without needing manual deletion. Logs are deleted in chunks of 0.1% of the storage limit, which equates to 10,000 logs at a time.
61+
62+
This setting is useful for maintaining continuous logging while staying within the default storage constraints.

src/content/docs/ai-gateway/reference/limits.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ The following limits apply to gateway configurations, logs, and related features
2222

2323
<sup>1</sup> If you have reached 10 million logs stored per gateway, new logs
2424
will stop being saved. To continue saving logs, you must delete older logs in
25-
that gateway to free up space or create a new gateway.
25+
that gateway to free up space or create a new gateway. Refer to [Auto Log
26+
Cleanup](/ai-gateway/observability/logging/#auto-log-cleanup) for more details
27+
on how to automatically delete logs.
2628

27-
<sup>2</sup> If you have reached 100,000 logs stored per account, accross all
29+
<sup>2</sup> If you have reached 100,000 logs stored per account, across all
2830
gateways, new logs will stop being saved. To continue saving logs, you must
29-
delete older logs.
31+
delete older logs. Refer to [Auto Log
32+
Cleanup](/ai-gateway/observability/logging/#auto-log-cleanup) for more details
33+
on how to automatically delete logs.
3034

3135
<sup>3</sup> Logs larger than 10 MB will not be stored.
3236

0 commit comments

Comments
 (0)