Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkIndexer ¶
type BulkIndexer interface { // Index documents Index(body []byte) error // Check if a flush is needed CheckFlush(count int, length int) bool }
A BulkIndexer is used to index documents in ElasticSearch
type HttpBulkIndexer ¶
type HttpBulkIndexer struct { // Protocol (http or https). Protocol string // Host name and port number (default to "localhost:9200"). Domain string // Maximum number of documents. MaxCount int // contains filtered or unexported fields }
A HttpBulkIndexer uses the HTTP REST Bulk Api of ElasticSearch in order to index documents
func NewHttpBulkIndexer ¶
func (*HttpBulkIndexer) CheckFlush ¶
func (h *HttpBulkIndexer) CheckFlush(count int, length int) bool
func (*HttpBulkIndexer) Index ¶
func (h *HttpBulkIndexer) Index(body []byte) error
type MongodbOutput ¶
type MongodbOutput struct { FailedCount int64 // contains filtered or unexported fields }
func (*MongodbOutput) Run ¶
func (self *MongodbOutput) Run(runner plugins.OutputRunner) error
Click to show internal directories.
Click to hide internal directories.