graylog

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 12 Imported by: 14

README

Graylog Output Plugin

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

Configuration:
[[outputs.graylog]]
  ## UDP endpoint for your graylog instances.
  servers = ["127.0.0.1:12201"]

  ## The field to use as the GELF short_message, if unset the static string
  ## "telegraf" will be used.
  ##   example: short_message_field = "message"
  # short_message_field = ""

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 `toml:"servers"`
	ShortMessageField string   `toml:"short_message_field"`
	// 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