Documentation
¶
Index ¶
- type Collection
- func (config *Collection) AddJournald(logGroupName, logStreamName string, units []string, priority string, ...)
- func (config *Collection) AddLogFile(filePath, logGroupName, logStreamName string, ...)
- func (config *Collection) AddWindowsEvent(eventName, logGroupName, logStreamName, eventFormat string, ...)
- func (config *Collection) ToMap(ctx *runtime.Context) (string, map[string]interface{})
- type Config
- type EventConfig
- type EventFilter
- type Events
- type Files
- type Journald
- type JournaldConfig
- type JournaldFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// file based logs
Files *Files
// windows events
WinEvents *Events
// journald logs
Journald *Journald
}
func (*Collection) AddJournald ¶ added in v1.300070.0
func (config *Collection) AddJournald(logGroupName, logStreamName string, units []string, priority string, matches []map[string]string, filters []*JournaldFilter, retention int)
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
type Journald ¶ added in v1.300070.0
type Journald struct {
JournaldConfigs []*JournaldConfig
}
func (*Journald) AddJournald ¶ added in v1.300070.0
type JournaldConfig ¶ added in v1.300070.0
type JournaldConfig struct {
LogGroup string `json:"log_group_name"`
LogStream string `json:"log_stream_name"`
Units []string `json:"units"`
Priority string `json:"priority"`
Matches []map[string]string `json:"matches"`
Filters []*JournaldFilter `json:"filters"`
RetentionInDays int `json:"retention_in_days"`
}
type JournaldFilter ¶ added in v1.300070.0
Click to show internal directories.
Click to hide internal directories.