实时获取预签名URL的带宽使用情况? [英] Get bandwidth usage of pre-signed URL in real time?

查看:102
本文介绍了实时获取预签名URL的带宽使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以获取特定预签名URL的实时带宽使用情况?

Is there any way to get real time bandwidth usage of a particular pre-signed URL?

我进行了一些Google搜索,看来不可能吗?

I did some Google searches and it seemed not possible?

我们之所以需要这样做,是因为我们想向我们的成员发布一些相当大的数据集(超过300GB),并且不对带宽使用情况进行审核以应对潜在的下载滥用行为是不明智的.

We need this because we want to release some pretty large data sets (over 300GB) to our members and it wouldn't be wise to not audit the bandwidth usage against potential download abuses.

推荐答案

对于Amazon S3访问日志记录,启用S3服务器访问日志记录.确保将日志文件存储在其他存储桶中.输出格式看起来有点像Apache日志文件,所以有很多处理数据的工具.一个简单的Python脚本也可以完成这项工作.

For Amazon S3 access logging, enable S3 Server Access Logging. Make sure that you store the log files in different bucket. The output format looks somewhat like Apache log files so there are lots of tools that process the data. A simple Python script can do the job too.

在决定如何处理日志文件之后,您需要开发一些东西来处理访问数据并生成警报/警报.您可能需要查看预签名的URL,签名的cookie等,以更好地控制访问.有了300 GB的数据集,每GB数据传输的费用约为$ 0.09,滥用费用不会花很长时间.

After deciding how to process the log files, you then need to develop something that processes the access data and generates alerts / alarms. You may want to take a look at presigned URLs, signed cookies, etc. to better control access. With 300 GB datasets and apx $0.09 per GB data transfer, it won't take long for abuse to rack up some bills.

这是包含所有详细信息的文档链接:

Here is a document link with all the details:

Amazon S3服务器访问日志记录

这篇关于实时获取预签名URL的带宽使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆