gcloud_logging_sinks_update (1)
NAME
- gcloud logging sinks update - updates a sink
SYNOPSIS
-
gcloud 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
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 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 variant is also available:
- $ gcloud beta logging sinks update