英文:
Monitoring s3 presigned URL usage
问题
我们的服务正在使用S3预签名URLS允许我们的客户下载数据。
由于S3预签名下载在下载时不经过我们的软件堆栈:我们无法确定链接是否实际被我们的客户使用。
我们希望了解我们的客户实际下载了多少字节。(我们提供给客户链接,但我们无法看到实际的流量是什么)
我们正在寻找一种简单的方法来监控使用情况(云监控指标,或任何其他AWS服务)。以获取一个数字:所有客户在特定日期下载的总字节数。
英文:
Our service is using S3 presigned URLS to allow our clients to download data.
Since S3 presigned downloads do not pass through our software stack at the time of download: We cannot be sure if the links were actually used by our clients.
We would like to understand how many bytes are actually being downloaded by our clients. (We give the clients the links, but we do not have visibility on what the actual traffic is)
We are looking for a simple way to monitor the usage (cloudwatch metrics, or any other AWS service). To get a single number: Total number of bytes downloaded by all our clients combined per specific date
答案1
得分: 1
查看S3使用报告。它应该允许您获取存储桶的使用情况。如果您的存储桶仅由您的客户使用,这应该足够。
然而,如果同一个存储桶有其他对象,您可能希望获得更详细的信息。在这种情况下,上述文章提供了另一个链接,用于启用服务器访问日志记录。这将记录每个请求的详细信息,包括发送的字节数。
英文:
Check out S3 usage report. It should allow you to get the usage of the bucket. If your bucket is only used by your clients, this should be enough.
However, if the same bucket has other objects, you may want more granularity. In that case, the article above provides yet another link for enabling server access logging. This logs detailed records for each request, including the number of bytes sent.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论