Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 568 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 568 Bytes

Go-S2S

Go S2S is a client implementation of the Splunk to Splunk protocol in Golang. It allows you to send structured data to Splunk using the same protocol as a Splunk forwarder.

Sample Usage:

    s, err := s2s.NewS2S([]string{"localhost:9997"}, 0)
	event := map[string]string{
		"index":      "main",
		"host":       "host",
		"source":     "myprog",
		"sourcetype": "myprog",
		"_raw":       "Here's an event!",
	}
	err = s.Send(event)