logstash 를 이용해 ES 에 vertex, edge 자료구조로 변환 적재할 수 있는 filter plugin
- input 을 csv, jdbc, kafka 등 자유롭게 선택 가능
- output 은 저장하고자 하는 es 와 index 지정
- build : ./gradlew gem
- deplay : ./logstash-filter-agenspop_filter-0.7.2.gem
- plugin install : bin/logstash-plugin install --no-verify --local /path/to/javaPlugin.gem --> 참고문서 https://www.elastic.co/guide/en/logstash/current/java-filter-plugin.html
- sample data : ./samples <== northwind, airroutes
- jruby-dist:^9.2.7.0
- gradle:^4.8
- groovy:^2.4.12
- jvm:1.8.0
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
-
최초 등록시에는 시간이 꽤 걸린다. (약 5분?) 인내심을 가지세요.
cd $LS_HOME
bin/logstash-plugin install --no-verify --local ~/Workspaces/agens/logstash-filter-agenspop_filter-0.7.2.gem
- sample config files for importing northwind data from postgresql
- start batch of bulk insert about northwind
- end batch of bulk insert about northwind
- northwind graph using agens-workspace
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.