LogExclusionArgs

data class LogExclusionArgs(val description: Output<String>? = null, val disabled: Output<Boolean>? = null, val filter: Output<String>, val name: Output<String>) : ConvertibleToJava<LogExclusionArgs>

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.

Constructors

Link copied to clipboard
fun LogExclusionArgs(description: Output<String>? = null, disabled: Output<Boolean>? = null, filter: Output<String>, name: Output<String>)

Functions

Link copied to clipboard
open override fun toJava(): LogExclusionArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

Optional. A description of this exclusion.

Link copied to clipboard
val disabled: Output<Boolean>? = null

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.

Link copied to clipboard
val filter: Output<String>

An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#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

Link copied to clipboard
val name: Output<String>

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.