Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 3.01 KB

README.md

File metadata and controls

77 lines (47 loc) · 3.01 KB

Logstash Java Plugin

summary

logstash 를 이용해 ES 에 vertex, edge 자료구조로 변환 적재할 수 있는 filter plugin

  • input 을 csv, jdbc, kafka 등 자유롭게 선택 가능
  • output 은 저장하고자 하는 es 와 index 지정

build & deploy

dependencies

  • jruby-dist:^9.2.7.0
  • gradle:^4.8
  • groovy:^2.4.12
  • jvm:1.8.0

gradle.property 환경변수 및 logstash_core 다운로드

filter plugin 은 logstash source 내용을 기반으로 build 되기 때문에 source 다운로드가 필요하다.

==> logstash branch 7.2 or logstash release 7.2.1

this.project 의 root_path 에 gradle.properties 를 생성 (핵심은 LOGSTASH_CORE_PATH)

export OSS=true
export LOGSTASH_SOURCE=<downloaded_path>
echo "LOGSTASH_CORE_PATH=${LOGSTASH_SOURCE}/logstash-core" > gradle.properties

deploy plugin

cd $LS_HOME
bin/logstash-plugin install --no-verify --local ~/Workspaces/agens/logstash-filter-agenspop_filter-0.7.2.gem

import test using agenspop-filter-plugin

  1. sample config files for importing northwind data from postgresql

  1. start batch of bulk insert about northwind

  1. end batch of bulk insert about northwind

  1. northwind graph using agens-workspace

참고

Travis Build Status

This is a Java plugin for Logstash.

It is fully free and fully open source. The license is Apache 2.0, meaning you are free to use it however you want.

The documentation for Logstash Java plugins is available here.