Class: Google::Logging::V2::LogExclusion

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb

Overview

Specifies a set of log entries that are not to be stored in Stackdriver 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.

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionString

Returns Optional. A description of this exclusion.

Returns:

  • (String)

    Optional. A description of this exclusion.



276
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 276

class LogExclusion; end

#disabledtrue, false

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

Returns:

  • (true, false)

    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.



276
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 276

class LogExclusion; end

#filterString

Returns 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)"+

Returns:

  • (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)"+



276
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 276

class LogExclusion; end

#nameString

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

Returns:

  • (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.



276
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 276

class LogExclusion; end