Google cloud storage 在GCS中设置存储桶日志记录

Google cloud storage 在GCS中设置存储桶日志记录,google-cloud-storage,gsutil,Google Cloud Storage,Gsutil,正在尝试在GCS存储桶上设置日志记录。每次我输入设置日志记录的命令时,都会出现下面的错误“命令异常:“日志记录”命令不支持“文件:/”URL。是否要使用gs://URL?”是我的测试日志存储桶出错,还是日志记录命令覆盖了我的存储桶 我在学习本教程时遇到了相同的错误。 解决办法很简单。我忘记了我的两个前斜杠:/在gs: 错误命令: $ gsutil mb gs:tony-project-123 $ gsutil defacl set public-read gs:tony-project-123

正在尝试在GCS存储桶上设置日志记录。每次我输入设置日志记录的命令时,都会出现下面的错误“命令异常:“日志记录”命令不支持“文件:/”URL。是否要使用gs://URL?”是我的测试日志存储桶出错,还是日志记录命令覆盖了我的存储桶


我在学习本教程时遇到了相同的错误。
解决办法很简单。我忘记了我的两个前斜杠:
/
gs:

错误命令:

$ gsutil mb gs:tony-project-123
$ gsutil defacl set public-read gs:tony-project-123
$ gsutil mb gs://tony-project-123
$ gsutil defacl set public-read gs://tony-project-123
右命令:

$ gsutil mb gs:tony-project-123
$ gsutil defacl set public-read gs:tony-project-123
$ gsutil mb gs://tony-project-123
$ gsutil defacl set public-read gs://tony-project-123

欢迎来到SO。请参阅。我认为您的问题是您正在传递文本
[-o日志]
。您需要完全删除它,或者删除括号并为日志前缀选择一个值。在一段时间后,有人向我指出了这一点。谢谢你的回复。当我这么做的时候,我得多睡一会儿。