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:"message,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` Level int `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"` ContainerCreated string `json:"created,omitempty"` }
Click to show internal directories.
Click to hide internal directories.