logstash

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorLogServerNoSet = errors.New("LOG_SERVER is not set")
View Source
var LogServer string

LogServer

Functions

func Close

func Close() error

Close is a function to close logstash client

func Connect

func Connect() error

Connect is a function to connect to logstash

func Send

func Send(logData Log) bool

Send is a function to send log to logstash

Types

type Log

type Log struct {
	Path  string    `json:"path"`
	Value int64     `json:"value"`
	Time  time.Time `json:"addtime"`
}

Log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL