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
To manage your log storage effectively and ensure continuous logging, you can delete logs using the following methods:
57
+
56
58
### Automatic Log Deletion
57
59
58
-
To maintain continuous logging within your gateway's storage constraints, enable Automatic Log Deletion in your Gateway settings. This feature automatically deletes the oldest logs once the log limit you've set or the default storage limit of 10 million logs is reached, ensuring new logs are saved without manual intervention. Logs are deleted in increments of 0.1% of the storage limit, equating to 10,000 logs per deletion when using the default limit.
60
+
To maintain continuous logging within your gateway's storage constraints, enable Automatic Log Deletion in your Gateway settings. This feature automatically deletes the oldest logs once the log limit you've set or the default storage limit of 10 million logs is reached, ensuring new logs are saved without manual intervention.
59
61
60
62
### Manual deletion
61
63
62
-
To manually delete logs, navigate to the Logs tab in the dashboard. Use the available filters such as status, cache, provider, cost, or any other options in the dropdown to refine the logs you wish to delete. Once filtered, select Delete logs to complete the action.
64
+
To manually delete logs through the dashboard, navigate to the Logs tab in the dashboard. Use the available filters such as status, cache, provider, cost, or any other options in the dropdown to refine the logs you wish to delete. Once filtered, select Delete logs to complete the action.
63
65
64
66
See full list of available filters and their descriptions below:
65
67
@@ -78,3 +80,7 @@ See full list of available filters and their descriptions below:
78
80
| Metadata Value | equals, does not equal | specific metadata values. |
79
81
| Log ID | equals, does not equal | a specific Log ID. |
80
82
| Event ID | equals, does not equal | a specific Event ID. |
83
+
84
+
### API deletion
85
+
86
+
You can programmatically delete logs using the AI Gateway API. For more comprehensive information on the `DELETE` logs endpoint, check out the [Cloudflare API documentation](https://developers.cloudflare.com/api/resources/ai_gateway/subresources/logs/methods/delete/).
0 commit comments