qhandler_elasticsearch

package module
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

README

handler-elasticsearch

QFrame handler to push messages to elasticsearch

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logstash

type Logstash struct {
	Settings interface{} `json:"settings"`
	Mappings interface{} `json:"mappings"`
}

func NewLogstash

func NewLogstash(shards, replicas int) Logstash

func (*Logstash) GetConfig

func (l *Logstash) GetConfig() (interface{}, error)

type Plugin

type Plugin struct {
	*qtypes_plugin.Plugin

	KVtoFields map[string]string
	SkipKV     []string
	// contains filtered or unexported fields
}

Plugin holds a buffer and the initial information from the server

func New

func New(qChan qtypes_qchannel.QChan, cfg *config.Config, name string) (Plugin, error)

New returns an initial instance

func (*Plugin) ParseKVtoFields

func (p *Plugin) ParseKVtoFields()

func (*Plugin) ParseSkipKV

func (p *Plugin) ParseSkipKV()

func (*Plugin) Run

func (p *Plugin) Run()

Run pushes the logs to elasticsearch

type Settings

type Settings struct {
	NumShards   int "json:`index.number_of_shards`"
	NumReplicas int "json:`index.number_of_replicas`"
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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