Search code examples
logginggoogle-cloud-platformgoogle-cloud-storagestackdriver

Can I repopulate Logs to Stackdriver?


Hi supposing I have a sink from StackDriver to Google Cloud Storage for Archiving Purposes. Once the retention period of the logs on StackDriver is over, can I use the logs that land on Google Cloud Storage to populate Again StackDriver?


Solution

  • In GCP, it is not possible to transfer the older logs from sink destination (Pub/Sub, Cloud Storage, or BigQuery) to Cloud logging.

    The retention period is 30days in Cloud logging by default, however you can now create custom retention between 1 day and 3650 days. You can follow this thread for more information about custom retention in Cloud Logging.