diff --git a/docs/sources/configure/_index.md b/docs/sources/configure/_index.md index 7302e4eb92237..b675f85157423 100644 --- a/docs/sources/configure/_index.md +++ b/docs/sources/configure/_index.md @@ -3148,7 +3148,7 @@ otlp_config: resource_attributes: # Configure whether to ignore the default list of resource attributes to be # stored as index labels and only use the given resource attributes config - [ignore_defaults: ] + [ignore_defaults: | default = false] [attributes_config: ] diff --git a/pkg/loghttp/push/otlp_config.go b/pkg/loghttp/push/otlp_config.go index e2aba0f6f8135..44c0e932f9c12 100644 --- a/pkg/loghttp/push/otlp_config.go +++ b/pkg/loghttp/push/otlp_config.go @@ -146,7 +146,7 @@ func (c *AttributesConfig) UnmarshalYAML(unmarshal func(interface{}) error) erro } type ResourceAttributesConfig struct { - IgnoreDefaults bool `yaml:"ignore_defaults,omitempty" doc:"description=Configure whether to ignore the default list of resource attributes to be stored as index labels and only use the given resource attributes config"` + IgnoreDefaults bool `yaml:"ignore_defaults,omitempty" doc:"default=false|description=Configure whether to ignore the default list of resource attributes to be stored as index labels and only use the given resource attributes config"` AttributesConfig []AttributesConfig `yaml:"attributes_config,omitempty"` }