1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 20:36:39 +00:00

gcloud: Tue Mar 1 21:43:54 UTC 2022

This commit is contained in:
Automated 2022-03-01 21:43:54 +00:00
parent c1c3b75313
commit 21878eea72
1018 changed files with 4838 additions and 3409 deletions

View file

@ -28,8 +28,9 @@ EXAMPLES
To enable CMEK for the Logs Router for an organization, run:
$ gcloud alpha logging settings update \
--organization=[ORGANIZATION_ID]
--kms-key-name='projects/my-project/locations/my-location/keyRings/my-keyring/cryptoKeys/key'
--organization=[ORGANIZATION_ID] \
--kms-key-name='projects/my-project/locations/my-location/keyRin\
gs/my-keyring/cryptoKeys/key'
To disable CMEK for the Logs Router for an organization, run:
@ -39,8 +40,8 @@ EXAMPLES
To update storage location for the Logs Router for an organization, run:
$ gcloud alpha logging settings update \
--organization=[ORGANIZATION_ID]
--storage-location=[LOCATION_ID]
--organization=[ORGANIZATION_ID] \
--storage-location=[LOCATION_ID]
To update storage location for the Logs Router for a folder, run:

View file

@ -38,8 +38,9 @@ DESCRIPTION
EXAMPLES
To route all Google Compute Engine logs to BigQuery, run:
$ gcloud alpha logging sinks create my-bq-sink
bigquery.googleapis.com/projects/my-project/datasets/my_dataset --log-filter='resource.type="gce_instance"'
$ gcloud alpha logging sinks create my-bq-sink \
bigquery.googleapis.com/projects/my-project/datasets/\
my_dataset --log-filter='resource.type="gce_instance"'
To route "syslog" from App Engine Flexible to a Cloud Storage bucket, run:
@ -50,13 +51,15 @@ EXAMPLES
To route Google App Engine logs with ERROR severity, run:
$ gcloud alpha logging sinks create my-error-logs
bigquery.googleapis.com/projects/my-project/datasets/my_dataset --log-filter='resource.type="gae_app" AND severity=ERROR'
$ gcloud alpha logging sinks create my-error-logs \
bigquery.googleapis.com/projects/my-project/datasets/\
my_dataset --log-filter='resource.type="gae_app" AND severity=ERROR'
To route all logs to a log bucket in a different project, run:
$ gcloud alpha logging sinks create my-sink
logging.googleapis.com/projects/my-central-project/locations/global/buckets/my-central-bucket
$ gcloud alpha logging sinks create my-sink \
logging.googleapis.com/projects/my-central-project/locations/\
global/buckets/my-central-bucket
POSITIONAL ARGUMENTS
SINK_NAME

View file

@ -16,8 +16,7 @@ EXAMPLES
To update a view in your project, run:
$ gcloud alpha logging views update my-view --bucket=my-bucket \
--location=global
--description=my-new-description
--location=global --description=my-new-description
POSITIONAL ARGUMENTS
VIEW_ID