graylog-golang is a full implementation for sending messages in GELF (Graylog Extended Log Format) from Go (Golang) to Graylog
package main
import (
"github.com/robertkowalski/graylog-golang"
)
func main() {
g := gelf.New(gelf.Config{})
g.Log(`{
"version": "1.0",
"host": "localhost",
"timestamp": 1356262644,
"facility": "Google Go",
"short_message": "Hello From Golang!"
}`)
}
g := gelf.New(gelf.Config{
GraylogPort: 80,
GraylogHostname: "example.com",
Connection: "wan",
MaxChunkSizeWan: 42,
MaxChunkSizeLan: 1337,
})