# REST Resource: projects.exclusions

- [Resource: LogExclusion](https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions#LogExclusion)
  - [JSON representation](https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions#LogExclusion.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions#METHODS_SUMMARY)

## Resource: LogExclusion

Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don't apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.

| JSON representation |
|---|
| ``` { "name": string, "description": string, "filter": string, "disabled": boolean, "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Optional. A client-assigned identifier, such as `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric. |
| `description` | `string` Optional. A description of this exclusion. |
| `filter` | `string` Required. An [advanced logs filter](https://docs.cloud.google.com/logging/docs/view/building-queries#queries-by-expression) that matches the log entries to be excluded. By using the [sample function](https://docs.cloud.google.com/logging/docs/view/logging-query-language#sample), you can exclude less than 100% of the matching log entries. For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets: `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` |
| `disabled` | `boolean` Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can `https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/exclusions/patch#google.logging.v2.ConfigServiceV2.UpdateExclusion` to change the value of this field. |
| `createTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The creation timestamp of the exclusion. This field may not be present for older exclusions. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. The last update timestamp of the exclusion. This field may not be present for older exclusions. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions/create` | Creates a new exclusion in the _Default sink in a specified parent resource. |
| ### `https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions/delete` | Deletes an exclusion in the _Default sink. |
| ### `https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions/get` | Gets the description of an exclusion in the _Default sink. |
| ### `https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions/list` | Lists all the exclusions on the _Default sink in a parent resource. |
| ### `https://docs.cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions/patch` | Changes one or more properties of an existing exclusion in the _Default sink. |