AWS S3 can distribute files to the public by configuring a public bucket or configuring public access to specific objects from within the bucket. S3 can also be used to host static websites.
47411d8baafa8cced757f771442e08849454857df58a341bfbcdf5bc22ea7be8 simplified-guide [18/Feb/2019:05:43:32 +0000] 112.120.201.145 - 381A22D2E282215C WEBSITE.GET.OBJECT index.html "GET / HTTP/1.1" 404 NoSuchKey 538 - 28 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36" - 47411d8baafa8cced757f771442e08849454857df58a341bfbcdf5bc22ea7be8 simplified-guide [18/Feb/2019:05:43:34 +0000] 112.120.201.145 - 64BED33D9CCEB6B7 WEBSITE.GET.OBJECT favicon.ico "GET /favicon.ico HTTP/1.1" 404 NoSuchKey 539 - 14 - "http://simplified-guide.s3-website.us-east-1.amazonaws.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36" - 47411d8baafa8cced757f771442e08849454857df58a341bfbcdf5bc22ea7be8 simplified-guide [18/Feb/2019:05:43:43 +0000] 112.120.201.145 - 560BDDE0527AC26F WEBSITE.GET.OBJECT oseems.png "GET /oseems.png HTTP/1.1" 200 - 31397 31397 12 11 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.96 Safari/537.36" -
You can choose to log access to objects in your S3 buckets just as you would if you're hosting it via a webserver by configuring Server access logging option for your S3 bucket. The log can be configured to be stored in another S3 bucket that is preferably private.
Related: How to create public AWS S3 bucket \\Related: How to allow public access to private AWS S3 bucket objects \\Related: How to host static website on AWS S3
Related: How to create private AWS S3 bucket
Related: AWS S3 Management Console
The logs will be stored in the root path of the bucket if no path is available and/or selected.
Related: AWS S3 Management Console
Related: AWS S3 Management Console
The log files are not generated and made available in real-time, so there will be some delay from accessing the objects and for the logs to be available.
Comment anonymously. Login not required.