[GWS] GWS Audit Log Sync To Synology Not Work
Situation
The Cloud Sync Not Sync GWS Audit Log When File Name Have :
Research
The Synology official doc not specific :
is speicial characters

How To Fix
Cloud Run Functions
Create Cloud Run Functions Rename Objects When That Create.
import base64
from google.cloud import storage
def rename_gcs_object(event, context):
# get information from event
bucket_name = event['bucket']
file_name = event['name']
# init client
storage_client = storage.Client()
# set bucket name, obj name
bucket = storage_client.bucket(bucket_name)
blob = bucket.blob(file_name)
# rename obj without :
new_prefix = file_name.replace(":", "")
# rename obj
bucket.rename_blob(blob, new_prefix)

google-cloud-storage
Click Create

Verify
Go To Cloud Storage
Copy Object

The New Object Will Rename Automation
