gcloud_beta_logging_sinks_update (1)
NAME
- gcloud beta logging sinks update - updates a sink
SYNOPSIS
-
gcloud beta logging sinks update SINK_NAME [DESTINATION] [--log-filter=LOG_FILTER] [--billing-account=BILLING_ACCOUNT_ID | --folder=FOLDER_ID | --organization=ORGANIZATION_ID] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Changes the [destination] or --log-filter associated
POSITIONAL ARGUMENTS
-
- SINK_NAME
-
The name of the sink to update.
- [DESTINATION]
-
A new destination for the sink. If omitted, the sink's existing destination is
unchanged.
FLAGS
-
- --log-filter=LOG_FILTER
-
A new filter expression for the sink. If omitted, the sink's existing filter (if
any) is unchanged.
-
At most one of these may be specified:
-
- --billing-account=BILLING_ACCOUNT_ID
-
Update a sink associated with this billing account.
- --folder=FOLDER_ID
-
Update a sink associated with this folder.
- --organization=ORGANIZATION_ID
-
Update a sink associated with this organization.
-
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To only update a sink filter, run:
-
$ gcloud beta logging sinks update my-sink \
--log-filter='severity>=ERROR'
Detailed information about filters can be found at: cloud.google.com/logging/docs/view/advanced_filters
NOTES
This command is currently in BETA and may change without notice. This variant is also available:
- $ gcloud logging sinks update