outputelastic

package
v0.0.0-...-3e9a38d Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: LGPL-3.0 Imports: 3 Imported by: 0

README

gogstash output elastic

Synopsis

{
	"output": [
		{
			"type": "elastic",

			// (required)
			"url": "http://127.0.0.1:9200",

			// (required)
			"index": "testindex",

			// (required)
			"document_type": "testtype",

			// (optional)
			"document_id": "%{fieldstring}"
		}
	]
}

Documentation

Index

Constants

View Source
const (
	ModuleName = "elastic"
)

Variables

This section is empty.

Functions

func InitHandler

func InitHandler(confraw *config.ConfigRaw) (retconf config.TypeOutputConfig, err error)

Types

type OutputConfig

type OutputConfig struct {
	config.OutputConfig
	URL          string `json:"url"`
	Index        string `json:"index"`
	DocumentType string `json:"document_type"`
	DocumentID   string `json:"document_id"`

	Sniff bool `json:"sniff"` // find all nodes of your cluster, https://github.com/olivere/elastic/wiki/Sniffing
	// contains filtered or unexported fields
}

func DefaultOutputConfig

func DefaultOutputConfig() OutputConfig

func (*OutputConfig) Event

func (t *OutputConfig) Event(event logevent.LogEvent) (err error)

Jump to

Keyboard shortcuts

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