Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSplunkAdapter ¶
func NewSplunkAdapter(route *router.Route) (router.LogAdapter, error)
NewSplunkAdapter creates an SplunkAdapter
Types ¶
type SplunkAdapter ¶
type SplunkAdapter struct {
// contains filtered or unexported fields
}
SplunkAdapter is an adapter that POSTs logs to an HTTP endpoint
func (*SplunkAdapter) Stream ¶
func (a *SplunkAdapter) Stream(logstream chan *router.Message)
Stream implements the router.LogAdapter interface
type SplunkMessage ¶
type SplunkMessage struct { Time int64 `json:"time"` Source string `json:"source"` SourceType string `json:"sourcetype"` Index string `json:"index"` Hostname string `json:"host"` Event SplunkMessageEvent `json:"event"` }
SplunkMessage is a simple JSON representation of the log message.
type SplunkMessageEvent ¶
Click to show internal directories.
Click to hide internal directories.