Skip to content

Commit

Permalink
fixing LogsConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulkaukuntla committed Feb 24, 2025
1 parent 2954f2c commit df25229
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions comp/logs/agent/config/integration_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit df25229

Please sign in to comment.