How to check the status of logging in Google Cloud Storage?

0 votes
How to check the status of logging in Google Cloud Storage?
Nov 22, 2019 in GCP by anonymous
• 8,200 points
54 views

1 answer to this question.

0 votes

Using gsutil, you can check logging by using the logging get command:

gsutil logging get gs://example-bucket

You can also save the logging configurations to a file:

gsutil logging get gs://example-bucket > your_logging_configuration_file

If logging is enabled, the server returns the logging configuration in the response:

{"logBucket": "example-logs-bucket", "logObjectPrefix": "log_object_prefix"}

If logging is not enabled, the following is returned:

gs://example-bucket/ has no logging configuration.
answered Nov 22, 2019 by Sirajul
• 45,960 points

Related Questions In GCP

+2 votes
2 answers

How to download multiple files in Google Cloud Storage?

You can achieve this through the gsutil ...READ MORE

answered May 9, 2018 in GCP by kurt_cobain
• 9,290 points
6,100 views
0 votes
1 answer
0 votes
1 answer

How do I get to know my transaction history in Google Cloud Platform?

These are the following steps to look at the transaction history within the Google ...READ MORE

answered Oct 7, 2019 in GCP by Sirajul
• 45,960 points
70 views
0 votes
1 answer
0 votes
1 answer

GCP Error: 403: Access Denied

Check that your credentials are correct. For ...READ MORE

answered Oct 9, 2019 in GCP by Sirajul
• 45,960 points
61 views
0 votes
1 answer

Permissions issue with Google Cloud Storage Bucket.

You can regain access to the object by assigning an applicable role, like roles/storage.objectAdmin, to ...READ MORE

answered Oct 10, 2019 in GCP by Sirajul
• 45,960 points
214 views
0 votes
1 answer
0 votes
1 answer