Tidi
Tidi

Reputation: 105

Lots of files appearing in my Amazon S3 bucket

Objects and files names in my S3 bucket changed from my selected names to those displayed in the screenshot below.. And now when I update a file, it uploads successfully but doesn't change, the date modified is not changed neither are the changes in the codes are visible on the web page. Can someone please help me find out what happens to this bucket and how can I fix it?

See the file and object names are all strange

Upvotes: 9

Views: 3815

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269312

The files you are showing are created by Amazon S3 bucket logging, which creates log files of access requests to Amazon S3.

Logging is activated within the Properties panel of your bucket, where you can nominate a target bucket and prefix for the logs.

So, your files are not being renamed. Rather, they are additional log files that are generated by Amazon S3.

If they are in the same location as your files, things will get confusing! Your files are still in there, but probably later in the naming scheme.

I would recommend:

  • Go into the bucket's properties
  • If you do not need the logs, then disable bucket logging
  • If you wish to keep the logs, configure them to write to a different bucket, or the same bucket but with a prefix (directory)
  • Delete or move the existing log files so that you will be left with just your non-log files

Upvotes: 20

Related Questions