Unable to see access logs in my Google Storage Buc

2019-08-15 17:34发布

问题:

I am developing a sample program using Google Storage service. I am able to set Bucket logging correctly, after setting logging and performing operations for days, still I am not able to see any csv file as logs in my destination logged bucket.

<Logging>
    <LogBucket>
        my_logs
    </LogBucket>
    <LogObjectPrefix>
        log_object_prefix
    </LogObjectPrefix>
</Logging>

I am using same above API to set logging. On getting the status of logging on bucket, it show as set logging.

Please let me know what is missing on setting logs?

Thanks in advance for help,

Neelam Sharma

回答1:

cloud-storage-analytics@google.com needs to have write permission for your LogBucket as described here: https://developers.google.com/storage/docs/accesslogs