1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 12:22:03 +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

@ -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