Class Exclusion (3.35.0)
Stay organized with collections
Save and categorize content based on your preferences.
3.35.0 (latest)
3.34.0
3.32.0
3.29.0
3.28.0
3.26.0
3.24.0
3.23.10
3.22.6
3.21.4
3.20.7
3.19.0
3.18.0
3.17.2
3.16.2
3.15.17
3.14.9
3.13.7
3.12.1
3.11.10
3.10.7
3.9.0
3.8.0
3.7.6
3.6.4
3.5.3
Specifies a set of log entries that are not to be stored in Logging. If your GCP resource
receives a large volume of logs, you can use exclusions to reduce your chargeable logs.
Exclusions are processed after log sinks, so you can export log entries before they are excluded.
Note that organization-level and folder-level exclusions don't apply to child resources, and that
you can't exclude audit log entries.
Inheritance
Object >
Exclusion
Static Methods
newBuilder(String name, String filter)
public static Exclusion . Builder newBuilder ( String name , String filter )
Returns a builder for Exclusion objects given the name of the exclusion and its filter.
of(String name, String filter)
public static Exclusion of ( String name , String filter )
Creates a Exclusion object given the name of the exclusion and its filter.
Methods
equals(Object o)
public boolean equals ( Object o )
Parameter
Name
Description
o
Object
Overrides
getCreateTime()
public Timestamp getCreateTime ()
Returns the creation timestamp of the exclusion.
getDescription()
public String getDescription ()
Returns an optional description of an exclusion. Used for documentation purpose.
Returns
Type
Description
String
getFilter()
public String getFilter ()
Returns an advanced logs filter. Example: resource.type=gcs_bucket severity<ERROR
sample(insertId, 0.99).
See Also: Advanced Log Filters
Returns
Type
Description
String
getName()
Returns the name of log exclusion.
Returns
Type
Description
String
getUpdateTime()
public Timestamp getUpdateTime ()
Returns the last update timestamp of the exclusion.
hashCode()
Returns
Type
Description
int
Overrides
isDisabled()
public boolean isDisabled ()
If set to True, then this exclusion is disabled and it does not exclude any log entries.
toBuilder()
public Exclusion . Builder toBuilder ()
Returns a builder for this Exclusion object.
toString()
Returns
Type
Description
String
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-08-04 UTC.
[null,null,["Last updated 2026-08-04 UTC."],[],[]]