REST Resource: billingAccounts.exclusions

Resource: LogExclusion

Specifies a set of log entries that are not to be stored in Logging. If your project receives a large volume of logs, you might be able to use exclusions to reduce your chargeable logs. Exclusions are processed after log sinks, so you can export log entries before they are excluded. Audit log entries and log entries from Amazon Web Services are never excluded.

JSON representation
{
  "name": string,
  "description": string,
  "filter": string,
  "disabled": boolean
}
Fields
name

string

Required. 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.

description

string

Optional. A description of this exclusion.

filter

string

Required. An advanced logs filter that matches the log entries to be excluded. By using the sample function, you can exclude less than 100% of the matching log entries. For example, the following filter matches 99% of low-severity log entries from load balancers:

"resource.type=http_load_balancer 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 use exclusions.patch to change the value of this field.

Methods

create

Creates a new exclusion in a specified parent resource.

delete

Deletes an exclusion.

get

Gets the description of an exclusion.

list

Lists all the exclusions in a parent resource.

patch

Changes one or more properties of an existing exclusion.
Was this page helpful? Let us know how we did:

Send feedback about...

Stackdriver Logging