Class: Google::Logging::V2::LogExclusion
- Inherits:
-
Object
- Object
- Google::Logging::V2::LogExclusion
- 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
-
#description ⇒ String
Optional.
-
#disabled ⇒ true, false
Optional.
-
#filter ⇒ String
Required.
-
#name ⇒ String
Required.
Instance Attribute Details
#description ⇒ String
Returns Optional. A description of this exclusion.
291 |
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 291 class LogExclusion; end |
#disabled ⇒ true, 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.
291 |
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 291 class LogExclusion; end |
#filter ⇒ String
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)"
291 |
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 291 class LogExclusion; end |
#name ⇒ String
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.
291 |
# File 'lib/google/cloud/logging/v2/doc/google/logging/v2/logging_config.rb', line 291 class LogExclusion; end |