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: 3 modules, 1 package

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

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
⌂ 换网址