How to get statistics about number of object downloads (GET requests) in AWS S3 in realtime?

I see that SNS notifications can be obtained concerning PUT, DELETE etc but not GET’s. I neee thix data to limit downloafs by maximum number of possible downloads, for example 10 times.

Any ideas are highly appreciated. Thank you.

One option is to turn on bucket logging, and then process the log files. This is IIRC what hex.pm does.

1 Like

I have considered that but the problem is that there is some time delay between the requests and log creation.

In the meantime, I have put together some Phoenix code to track the number of downloads based on how many times signed url’s where generated for any given file (Phoenix delivers the signed url’s).