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"` ShortMessage string `json:"short_message"` FullMessage string `json:"full_message,omitempty"` Timestamp float64 `json:"timestamp,omitempty"` Level int `json:"level,omitempty"` ContainerId string `json:"docker_container,omitempty"` ContainerImage string `json:"docker_image,omitempty"` ContainerName string `json:"container_name,omitempty"` }
Click to show internal directories.
Click to hide internal directories.