Using Console
Using CLI
[SINK_NAME]
with a name for the sink and [BUCKET_NAME]
with the name of the Cloud Storage bucket you want to export the logs to.[PROJECT_NUMBER]
with the project number and [BUCKET_NAME]
with the name of the Cloud Storage bucket.[KEY_FILE_NAME]
with a name for the key file and [IAM_ACCOUNT_EMAIL]
with the email address of the IAM key.Using Python
KEY_FILE_LOCATION
, PROJECT_ID
, METRIC_NAME
, and TIME_INTERVAL
variables with the appropriate values for your environment.