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
• 15,820 points
194 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
• 57,870 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,320 points
11,611 views
+2 votes
1 answer

How to install the Google Cloud SDK in Windows system?

Hi@akhtar, To install the Google Cloud SDK on ...READ MORE

answered Aug 23 in GCP by MD
• 55,300 points
80 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
• 57,870 points
171 views
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
• 57,870 points
537 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
• 57,870 points
1,412 views
0 votes
1 answer
0 votes
1 answer