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
• 19,610 points
1,463 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.


Hope it helps!!

To know more about Google Cloud, join Google Cloud platform certification course today.

Thank You!

answered Nov 22, 2019 by Sirajul
• 59,230 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,350 points
23,542 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 24, 2020 in GCP by MD
• 95,460 points
21,849 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
• 59,230 points
2,038 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
• 59,230 points
3,985 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
• 59,230 points
4,916 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP