Documentation
¶
Index ¶
Constants ¶
View Source
const (
SplunkBackendName = "splunk"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SplunkConfig ¶
type SplunkEvent ¶
type SplunkEvent struct {
// Time is the event time. The default time format is UNIX time format.
Time int64 `json:"time,omitempty"`
// Host value to assign to the event data. This key is typically the hostname of the client from which you're sending data.
Host string `json:"host,omitempty"`
// Source value to assign to the event data. For example, if you're sending data from an app you're developing, set this key to the name of the app.
Source string `json:"source,omitempty"`
// Sourcetype value to assign to the event data.
SourceType string `json:"sourcetype,omitempty"`
// Index by which the event data is to be indexed.
Index string `json:"index,omitempty"`
// Event is the actual event data in whatever format you want: a string, a number, another JSON object, and so on.
Event auditing.Entry `json:"event,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.