Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
CustomerCode string `json:"customer_code,omitempty"`
Host string `json:"host,omitempty"`
Source string `json:"source,omitempty"`
SourceEnvironment string `json:"source_environment,omitempty"`
Sourcetype string `json:"sourcetype,omitempty"`
Type string
}
Attributes contains the properties of a single LogEvent that may be passed as headers to an intermediate system (such as a message queue).
type LogEvent ¶
type LogEvent struct {
Attributes Attributes
Content MessageContent
}
LogEvent contains a single log message, made up of attributes/headers and message content.
type MessageContent ¶
type MessageContent struct {
Host string `json:"host,omitempty"`
Index string `json:"index,omitempty"`
Source string `json:"source,omitempty"`
Sourcetype string `json:"sourcetype,omitempty"`
Time time.Time `json:"time,omitempty"`
Fields map[string]interface{} `json:"fields,omitempty"`
Event interface{} `json:"event,omitempty"`
}
MessageContent is the actual message to be sent to the external destination.
Click to show internal directories.
Click to hide internal directories.