graylog

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 12 Imported by: 0

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