Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is it possible to recover logs that have expired in Cloud Logging?

yt_mgr
New Member

We have set the log retention period to one month in Cloud Logging. After one month, the logs have disappeared. Is there any way to recover the logs that have been deleted?

0 1 740
1 REPLY 1

Hi @yt_mgr,

Welcome to the Google Cloud Community!

Unfortunately, there is no way to recover the deleted logs that are past their retention period.

If you want to store logs for longer than the specified retention period, you can create a log sink and use Google Cloud's services, such as BigQuery, Pub/Sub, and Cloud Storage [1].

logging.png

You can find instructions on how to do this in this documentation.

Please let me know if that was helpful. Thank you!

[1]. https://cloud.google.com/logging/docs/routing/overview

Top Solution Authors