Logstash Jdbc use mysql -> elastcisearch configuration
2016.04.08 11:08
elastcisearch 2.3.1로 업그레이드 후 기본 jdbc를 사용 불가 하여 logstash를 사용 시도
# file: contacts-index-logstash.conf input { jdbc { jdbc_driver_library => "mysql-connector-java-5.1.36-bin.jar" jdbc_driver_class => "com.mysql.jdbc.Driver" jdbc_connection_string => "jdbc:mysql://localhost:3306/mydb" jdbc_user => "mysql" parameters => { "favorite_artist" => "Beethoven" } schedule => "* * * * *" statement => "SELECT * from songs where artist = :favorite_artist" } } filter { mutate { rename => {"timestamp" => "@timestamp"} } } output { elasticsearch { protocol => http index => "contacts" document_type => "contact" document_id => "%{uid}" host => "ES_NODE_HOST" } }
실행 bin/logstash agent -f logstash.conf
https://www.elastic.co/blog/logstash-jdbc-input-plugin
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
10 | v3 탐지 관련 | Leekyu | 2017.01.13 | 1362 |
9 |
머신러닝을 이용한 악성코드 랜섬웨어 분류 - Neural Network
![]() | Leekyu | 2016.10.23 | 7649 |
8 | 머신러닝을 이용한 악성코드 진단명 분류 - softmax 망함 [1] | Leekyu | 2016.10.22 | 6045 |
7 |
머신러닝을 이용한 악성코드 진단명 분류 - 3 : 학습과 예측
![]() | Leekyu | 2016.10.17 | 1592 |
6 |
머신러닝을 이용한 악성코드 진단명 분류 - 2 : 머신러닝 데이터 준비
![]() | Leekyu | 2016.10.16 | 1409 |
5 |
머신러닝을 이용한 악성코드 진단명 분류 - 1 : 샘플 파일 수집
![]() | Leekyu | 2016.10.04 | 2594 |
4 |
머신러닝을 이용한 안드로이드 APK(악성코드) 악성 유무 Classfication
![]() | Leekyu | 2016.09.25 | 1030 |
3 | scikit-learn을 이용한 spam 구분 with svm | Leekyu | 2016.04.12 | 541 |
» | Logstash Jdbc use mysql -> elastcisearch configuration | Leekyu | 2016.04.08 | 759 |
1 |
Splunk와 VirusTotal 연동 -수정중-
![]() | Leekyu | 2014.11.10 | 1467 |