Skip to content

ybalt/elasticsearch-river-zeromq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZeroMQ Logstash River Plugin for ElasticSearch

Build Status

This plugin allows fast indexing from logstash or node-logstash, using the ZeroMQ transport.

This plugin use by default JeroMQ, a pure Java ZeroMQ implementation. See below to use JZmq.

Without this plugin:

  • Logstash create an ElasticSearch node and join the cluster. Startup is very slow, and can consume lot of memory.
  • Node-logstash use standard HTTP ElasticSearch protocol.

Installation

bin/plugin -install bpaquet/elasticsearch-river-zeromq/0.0.5 --url https://github.com/bpaquet/elasticsearch-river-zeromq/releases/download/elasticsearch-river-zeromq-0.0.5/elasticsearch-river-zeromq-0.0.5.zip

How to use it

Create a river :

curl -XPUT localhost:9200/_river/my_river/_meta -d '
{
  "type" : "zeromq-logstash",
  "zeromq-logstash" : {
      "address" : "tcp://127.0.0.1:5556"
  }
}
'

From logstash, use

output {
  zeromq {
	  topology => "pushpull"
  	mode => "client"
  	address => ["tcp://127.0.0.1:5556"]
  }
}

From node-logstash, use

output://zeromq://tcp://127.0.0.1:5556

That's all !

Use JZMQ

  • Install the plugin
  • Go into plugin directory : plugins/river-zeromq
  • Remove jeromq and jzmq jars
  • Copy the zmq.jar (standard installation path is /usr/share/java/zmq.jar)
  • Set java.library.path while starting ElasticSearch : JAVA_OPTS="-Djava.library.path=/lib" bin/elasticsearch -f

About

ZeroMQ Logstash River Plugin for ElasticSearch

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%