Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
func (*Collection) AddLogFile ¶
func (config *Collection) AddLogFile(filePath, logGroupName, logStreamName string, timestampFormat, timezone, multiLineStartPattern, encoding string, retention int, logGroupClass string)
func (*Collection) AddWindowsEvent ¶
func (config *Collection) AddWindowsEvent(eventName, logGroupName, logStreamName, eventFormat string, eventLevels []string, eventIDs []int, filters []*EventFilter, retention int, logGroupClass string)
type Config ¶
type Config struct {
FilePath string `file_path`
LogGroup string `log_group_name`
LogStream string `log_stream_name`
LogGroupClass string `log_group_class`
TimestampFormat string `timestamp_format`
Timezone string `timezone`
MultiLineStartPattern string `multi_line_start_pattern`
Encoding string `encoding`
Retention int `retention_in_days`
}
type EventConfig ¶
type EventConfig struct {
EventName string `json:"event_name"`
EventLevels []string `json:"event_levels"`
EventIDs []int `json:"event_ids"`
Filters []*EventFilter `json:"filters"`
EventFormat string `json:"event_format"`
LogGroup string `json:"log_group_name"`
LogStream string `json:"log_stream_name"`
LogGroupClass string `json:"log_group_class"`
Retention int `json:"retention_in_days"`
}
type EventFilter ¶ added in v1.300059.0
Click to show internal directories.
Click to hide internal directories.