graylog

package
v0.0.0-...-3667945 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Graylog Output Plugin

This plugin writes to a Graylog instance using the "gelf" format.

It requires a servers name.

Configuration:
# Send telegraf metrics to graylog(s)
[[outputs.graylog]]
  ## UDP endpoint for your graylog instance(s).
  servers = ["127.0.0.1:12201", "192.168.1.1:12201"]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gelf

type Gelf struct {
	GelfConfig
}

func NewGelfWriter

func NewGelfWriter(config GelfConfig) *Gelf

func (*Gelf) Write

func (g *Gelf) Write(message []byte) (n int, err error)

type GelfConfig

type GelfConfig struct {
	GraylogEndpoint string
	Connection      string
	MaxChunkSizeWan int
	MaxChunkSizeLan int
}

type Graylog

type Graylog struct {
	Servers []string
	// contains filtered or unexported fields
}

func (*Graylog) Close

func (g *Graylog) Close() error

func (*Graylog) Connect

func (g *Graylog) Connect() error

func (*Graylog) Description

func (g *Graylog) Description() string

func (*Graylog) SampleConfig

func (g *Graylog) SampleConfig() string

func (*Graylog) Write

func (g *Graylog) Write(metrics []telegraf.Metric) error

Jump to

Keyboard shortcuts

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