Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sess ¶
type Sess struct {
// contains filtered or unexported fields
}
Sess stores sendhec session state.
func New ¶
New creates a new sendhec object/session. It requires a Splunk HEC URL and HEC token (typically, GUID).
func (*Sess) CloseSvc ¶
CloseSvc closes the open session. CloseSvc must not be called when no session is open.
func (*Sess) OpenSvc ¶
OpenSvc opens a new session. OpenSvc must not be called when a session is already open.
func (*Sess) SendMessage ¶
SendMessage sends a LogEvent to a Splunk HTTP Event Collector.
func (*Sess) SetHecInsecure ¶
SetHecInsecure disables SSL/TLS validation. THIS IS INSECURE but may be useful in dev/lab environments.
Click to show internal directories.
Click to hide internal directories.