自动删除 Cloud Logging 日志

发布于 2025-01-16 10:05:05 字数 224 浏览 0 评论 0原文

我想知道是否有一种方法可以定期从Cloud Logging内部删除日志。

我已经使用 Cloud Functions 设置了 Firebase,并且为每个函数调用完成了自动 Cloud Logging 日志注入。
我不想特别停止向 Cloud Logging 发送日志,但我希望能够通过删除旧日志来管理成本。

I would like to know if there is a way to periodically delete logs from inside Cloud Logging.

I have setup Firebase with Cloud Functions and i have an automatic Cloud Logging logs injection done for each function call.
I don't want especially to stop sending logs to Cloud Logging, but i would like to be able to manage my costs by deleting older logs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云胡 2025-01-23 10:05:05

您可以根据您的要求在 Cloud Logging 存储桶上设置保留政策,该政策可以在 1 天到 10 年后自动删除日志。

You can set a retention policy on your Cloud Logging bucket to match with your requirements, which can auto-delete logs after between 1 day and 10 years.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文