Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/content/docs/ai-gateway/observability/logging/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ curl https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai/chat/
}
'
```

## Auto Log Cleanup

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.

This setting is useful for maintaining continuous logging while staying within the default storage constraints.
7 changes: 4 additions & 3 deletions src/content/docs/ai-gateway/reference/limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ The following limits apply to gateway configurations, logs, and related features

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

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

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

Expand Down
Loading