{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-logging/json-schema/google-cloud-logging-log-exclusion-schema.json",
  "title": "LogExclusion",
  "description": "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.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-logging-exclusions-api-openapi.yml#/components/schemas/LogExclusion",
  "type": "object",
  "properties": {
    "filter": {
      "description": "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)",
      "type": "string"
    },
    "updateTime": {
      "type": "string",
      "description": "Output only. The last update timestamp of the exclusion.This field may not be present for older exclusions.",
      "format": "google-datetime",
      "readOnly": true
    },
    "disabled": {
      "type": "boolean",
      "description": "Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field."
    },
    "name": {
      "type": "string",
      "description": "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."
    },
    "createTime": {
      "format": "google-datetime",
      "type": "string",
      "readOnly": true,
      "description": "Output only. The creation timestamp of the exclusion.This field may not be present for older exclusions."
    },
    "description": {
      "description": "Optional. A description of this exclusion.",
      "type": "string"
    }
  }
}