A library for call HTTP Request to logstash
Just execute the following commands
$ go get -u github.com/shogo-ma/go-logstash
import (
"context"
"fmt"
"github.com/shogo-ma/go-logstash"
)
func main() {
client, err := logstash.NewClient("http://localhost:9600")
if err != nil {
panic(err)
}
ctx := context.Background()
nos, err := client.NodePipelineStatsInfo().Do(ctx)
fmt.Printf("%+v\n", nos)
}
The content of this repository are licensed under the MIT License unless otherwise noted. Please read LICENSE for the detail.