diff --git a/comp/logs/agent/config/integration_config.go b/comp/logs/agent/config/integration_config.go index 1d628aa5427196..f9204ea369a074 100644 --- a/comp/logs/agent/config/integration_config.go +++ b/comp/logs/agent/config/integration_config.go @@ -42,22 +42,22 @@ type LogsConfig struct { IntegrationName string Port int // Network - IdleTimeout string `mapstructure:"idle_timeout" json:"idle_timeout"` // Network + IdleTimeout string `mapstructure:"idle_timeout" json:"idle_timeout" yaml:"idle_timeout"` // Network Path string // File, Journald - Encoding string `mapstructure:"encoding" json:"encoding"` // File - ExcludePaths []string `mapstructure:"exclude_paths" json:"exclude_paths"` // File - TailingMode string `mapstructure:"start_position" json:"start_position"` // File + Encoding string `mapstructure:"encoding" json:"encoding" yaml:"encoding"` // File + ExcludePaths []string `mapstructure:"exclude_paths" json:"exclude_paths" yaml:"exclude_paths"` // File + TailingMode string `mapstructure:"start_position" json:"start_position" yaml:"start_position"` // File //nolint:revive // TODO(AML) Fix revive linter - ConfigId string `mapstructure:"config_id" json:"config_id"` // Journald - IncludeSystemUnits []string `mapstructure:"include_units" json:"include_units"` // Journald - ExcludeSystemUnits []string `mapstructure:"exclude_units" json:"exclude_units"` // Journald - IncludeUserUnits []string `mapstructure:"include_user_units" json:"include_user_units"` // Journald - ExcludeUserUnits []string `mapstructure:"exclude_user_units" json:"exclude_user_units"` // Journald - IncludeMatches []string `mapstructure:"include_matches" json:"include_matches"` // Journald - ExcludeMatches []string `mapstructure:"exclude_matches" json:"exclude_matches"` // Journald - ContainerMode bool `mapstructure:"container_mode" json:"container_mode"` // Journald + ConfigId string `mapstructure:"config_id" json:"config_id" yaml:"config_id"` // Journald + IncludeSystemUnits []string `mapstructure:"include_units" json:"include_units" yaml:"include_units"` // Journald + ExcludeSystemUnits []string `mapstructure:"exclude_units" json:"exclude_units" yaml:"exclude_units"` // Journald + IncludeUserUnits []string `mapstructure:"include_user_units" json:"include_user_units" yaml:"include_user_units"` // Journald + ExcludeUserUnits []string `mapstructure:"exclude_user_units" json:"exclude_user_units" yaml:"exclude_user_units"` // Journald + IncludeMatches []string `mapstructure:"include_matches" json:"include_matches" yaml:"include_matches"` // Journald + ExcludeMatches []string `mapstructure:"exclude_matches" json:"exclude_matches" yaml:"exclude_matches"` // Journald + ContainerMode bool `mapstructure:"container_mode" json:"container_mode" yaml:"container_mode"` // Journald Image string // Docker Label string // Docker @@ -67,7 +67,7 @@ type LogsConfig struct { // determine the appropriate tags for the logs. Identifier string // Docker, File - ChannelPath string `mapstructure:"channel_path" json:"channel_path"` // Windows Event + ChannelPath string `mapstructure:"channel_path" json:"channel_path" yaml:"channel_path"` // Windows Event Query string // Windows Event // used as input only by the Channel tailer. @@ -88,11 +88,11 @@ type LogsConfig struct { Tags TagsField ProcessingRules []*ProcessingRule `mapstructure:"log_processing_rules" json:"log_processing_rules" yaml:"log_processing_rules"` // ProcessRawMessage is used to process the raw message instead of only the content part of the message. - ProcessRawMessage *bool `mapstructure:"process_raw_message" json:"process_raw_message"` + ProcessRawMessage *bool `mapstructure:"process_raw_message" json:"process_raw_message" yaml:"process_raw_message"` - AutoMultiLine *bool `mapstructure:"auto_multi_line_detection" json:"auto_multi_line_detection"` - AutoMultiLineSampleSize int `mapstructure:"auto_multi_line_sample_size" json:"auto_multi_line_sample_size"` - AutoMultiLineMatchThreshold float64 `mapstructure:"auto_multi_line_match_threshold" json:"auto_multi_line_match_threshold"` + AutoMultiLine *bool `mapstructure:"auto_multi_line_detection" json:"auto_multi_line_detection" yaml:"auto_multi_line_detection"` + AutoMultiLineSampleSize int `mapstructure:"auto_multi_line_sample_size" json:"auto_multi_line_sample_size" yaml:"auto_multi_line_sample_size"` + AutoMultiLineMatchThreshold float64 `mapstructure:"auto_multi_line_match_threshold" json:"auto_multi_line_match_threshold" yaml:"auto_multi_line_match_threshold"` } // TagsField is a custom type for unmarshalling comma-separated string values or typical yaml fields into a slice of strings.