The discussion revolves around thousands of small XML files being saved daily in an S3 bucket, containing “Access Denied” messages. Alon1 initially shared the issue, and maiki suggested that the files might be logs or backups. After further investigation, Alon1 shared the content of a file, which maiki identified as server logs. The logs were not accessible to the public, resulting in the “Access Denied” messages.
To resolve the issue, maiki provided a link to AWS documentation on disabling server logs. Alternatively, maiki suggested researching the “enable s3 inventory” feature in upload settings. Alon1 eventually found the solution by disabling server logging in the bucket properties tab on AWS. To stop the log files, users can follow these steps:
Go to the bucket properties tab on AWS
Scroll down to the server logging panel and click Edit
The Discourse works very well, media on S3 works very well. However I just noticed that the S3 bucket has thousands of small files saved every day like this:
Those look like logs or backups. Are you able to download a file from the S3 dashboard directly (not via the public URL) and view their contents? That will direct you to what is generating them.
For future reference if anyone else has this issue, the files were log files, to stop them go to your bucket properties tab on AWS
scroll down to server logging panel (and click Edit):
Then simply disable and save: