'Automatic delete Cloud Logging logs
I would like to know if there is a way to periodically delete logs from inside Cloud Logging.
I have setup Firebase with Cloud Functions and i have an automatic Cloud Logging logs injection done for each function call.
I don't want especially to stop sending logs to Cloud Logging, but i would like to be able to manage my costs by deleting older logs.
Solution 1:[1]
You can set a retention policy on your Cloud Logging bucket to match with your requirements, which can auto-delete logs after between 1 day and 10 years.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Frank van Puffelen |
