监控具有 public 个网址的 Google 个云存储对象的下载

Monitoring downloads of Google Cloud Storage objects that have public URLs

我在 Google Cloud Storage 存储桶中有一些对象 public 只能在 URL 上下载,例如 https://storage.googleapis.com/blahblahblah. I want to set up a monitoring rule that lets me see how often one of these objects is being downloaded. I have turned on the Data Read audit log as mentioned here,但我没有看到任何日志当我从 storage.googleapis.com link 下载对象时。我有另一个存储桶,其中通过节点 Google 云存储客户端库执行下载,我可以看到该存储桶的下载日志,所以似乎从 public URL 下载没有记录。

在 Google Cloud 中设置警报时,我也没有看到在特定存储桶中指定对象的方法。专门为此对象创建一个新存储桶是尝试设置下载数量监控的最佳方式,还是我在这里遗漏了什么?

Google Cloud Audit 日志不跟踪 public(allUsersallAuthenticatedUsers)的对象。

启用 usage logs 以跟踪对 public 个对象的访问。

Should you use usage logs or Cloud Audit Logs?