Skip to content

A golang package that sends lines of data via tcp to logstash.

License

Notifications You must be signed in to change notification settings

rsherman-kabam/go-logstash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-logstash

A golang package that sends newline delimited data via tcp to logstash.

Example

import(
	"github.com/heatxsink/go-logstash"
	"fmt"
)

func main() {
	l := logstash.New("127.0.0.1", 9000, 5)
	_, err := l.Connect()
	if err != nil {
		fmt.Println(err)
	}
	err = l.Writeln("{ 'foo' : 'bar' }")
	if err != nil {
		fmt.Println(err)
	}
}

About

A golang package that sends lines of data via tcp to logstash.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Go 100.0%