Settings Stay organized with collections Save and categorize content based on your preferences.
Describes the settings associated with a project, folder, organization, or billing account.
| JSON representation |
|---|
{"name":string,"kmsKeyName":string,"kmsServiceAccountId":string,"storageLocation":string,"disableDefaultSink":boolean,"defaultSinkConfig":{object ( |
| Fields | |
|---|---|
name |
Output only. The resource name of the settings. |
kmsKeyName |
Optional. The resource name for the configured Cloud KMS key. KMS key name format: For example:
To enable CMEK, set this field to a valid The Cloud KMS key used by the Log Router can be updated by changing the To disable CMEK for the Log Router, set this field to an empty string. SeeEnabling CMEK for Log Router for more information. |
kmsServiceAccountId |
Output only. The service account that will be used by the Log Router to access your Cloud KMS key. Before enabling CMEK, you must first assign the role SeeEnabling CMEK for Log Router for more information. |
storageLocation |
Optional. The storage location for the Example value: Note: this setting does not affect the location of resources where a location is explicitly provided when created, such as custom log buckets. |
disableDefaultSink |
Optional. If set to true, the |
defaultSinkConfig |
Optional. Overrides the built-in configuration for |
loggingServiceAccountId |
Output only. The service account for the given resource container, such as project or folder. Log sinks use this service account as their |
DefaultSinkConfig
Describes the custom_Default sink configuration that is used to override the built-in_Default sink configuration in newly created resource containers, such as projects or folders.
| JSON representation |
|---|
{"filter":string,"exclusions":[{object ( |
| Fields | |
|---|---|
filter |
Optional. Anadvanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter. For example:
To match all logs, don't add exclusions and use the following line as the value of
Cannot be empty or unset when the value of |
exclusions[] |
Optional. Specifies the set of exclusions to be added to the |
mode |
Required. Determines the behavior to apply to the built-in Exclusions are always appended, as built-in |
FilterWriteMode
Behavior to apply to the built-in_Default sink inclusion filter.
| Enums | |
|---|---|
FILTER_WRITE_MODE_UNSPECIFIED | The filter's write mode is unspecified. This mode must not be used. |
APPEND | The contents offilter will be appended to the built-in_Default sink filter. Using the append mode with an empty filter will keep the sink inclusion filter unchanged. |
OVERWRITE | The contents offilter will overwrite the built-in_Default sink filter. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-21 UTC.