Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGelfAdapter ¶
func NewGelfAdapter(route *router.Route) (router.LogAdapter, error)
NewGelfAdapter creates a GelfAdapter with UDP as the default transport.
Types ¶
type GelfAdapter ¶
type GelfAdapter struct {
// contains filtered or unexported fields
}
GelfAdapter is an adapter that streams UDP JSON to Graylog
func (*GelfAdapter) Stream ¶
func (a *GelfAdapter) Stream(logstream chan *router.Message)
Stream implements the router.LogAdapter interface.
type GelfMessage ¶
type GelfMessage struct { Version string `json:"version"` Host string `json:"host,omitempty"` ShortMessage string `json:"short_message"` FullMessage string `json:"full_message,omitempty"` Timestamp float64 `json:"timestamp,omitempty"` Level int32 `json:"level,omitempty"` ImageId string `json:"_image_id,omitempty"` ImageName string `json:"_image_name,omitempty"` ContainerId string `json:"_container_id,omitempty"` ContainerName string `json:"_container_name,omitempty"` ContainerCmd string `json:"_command,omitempty"` Created string `json:"_created,omitempty"` }
Click to show internal directories.
Click to hide internal directories.