티스토리 뷰
Software/Data Analytics
[ELK Stack] Logstash Orcale DB 연동 via JDBC Input Plugin
Arc Lab. 2016. 12. 13. 10:50[업데이트 2016.12.29 23:31]
Logstash에서 JDBC Input Plugin을 통해 Oracle DB도 연동이 가능합니다. 만약 Oracle DB 정보가 아래와 같이 구성되어 있다면 다음과 같이 연결 할 수 있습니다.
Username : admin
Password : 1234
Hostname : 192.168.0.1
Port : 1500
SID : MYDB
input {
jdbc {
jdbc_driver_library => "C:\oracle-jdbc-driver\ojdbc6.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_connection_string => "jdbc:oracle:thin:@192.168.0.1:1500/MYDB"
jdbc_user => "admin"
jdbc_password => "1234"
statement => "SELECT * FROM tbl_account"
use_column_value => true
tracking_column => idx
schedule => "* * * * *"
}
}
filter {
}
output {
stdout {
codec => rubydebug
}
}
참고로 Oracle 사이트에서 JDBC 드라이버를 다운로드하여 jar파일을 지정해야 합니다. 다운로드를 위해서는 Oracle 사이트에 가입이 필요합니다.
* 참고: http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Library
- Memorize
- Worry
- ILoop Engine
- Ragdoll
- docker
- ate
- Physical Simulation
- Game Engine
- project
- English
- SSM
- Meow
- 2D Game
- some time ago
- OST
- #ELK Stack
- sentence test
- aws #cloudfront
- #ApacheSpark
- #TensorFlow
- Jekyll and Hyde
- 도커
- #ApacheZeppelin
- Mask R-CNN
- GOD
- #REST API
- belief
- Sea Bottom
- Badge
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함