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,600 points
634 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,170 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,390 points
18,857 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,340 points
8,575 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,170 points
574 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,170 points
1,980 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,170 points
2,886 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP