简体   繁体   中英

Can't the audit logs be deleted from Google Cloud Platform Stackdriver logs?

I tried deleting GCP logs using the command

$ gcloud logging logs delete [AUDIT_LOG_NAME]

Received a message saying "Permissions Denied: Audit logs cannot be deleted"

Even if I am the owner of the Project, and deleting the audit logs from my project, doesn't GCP allow the deletion of the audit logs?

I could delete other logs, (eg: syslogs), does the event related to the deleting of the logs are logged in the Stackdriver logs? if so what is the methodName using which I can filter the event

thank you

No you can't delete audit logs. The idea behind it is that you're being protected from someone gaining access to your project, making modifications, and then deleting the history of their changes.

The Docs describe the retention period of audit logs . But basically it's 400 days, unless you have data access audit logs enabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM