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 in GCP by anonymous
• 6,650 points
24 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 by Sirajul
• 40,980 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,280 points
5,303 views
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 in GCP by Sirajul
• 40,980 points
53 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 in GCP by Sirajul
• 40,980 points
32 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 in GCP by Sirajul
• 40,980 points
93 views
0 votes
1 answer