Skip to content

shogo-ma/go-logstash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-logstash

Build Status MIT License

A library for call HTTP Request to logstash

Installation

Just execute the following commands

$ go get -u github.com/shogo-ma/go-logstash

Example

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)
}                                 

LICENSE

The content of this repository are licensed under the MIT License unless otherwise noted. Please read LICENSE for the detail.

About

A library to call logstash api for golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages