Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- jdbc {
- jdbc_driver_library => "mysql-connector-java-5.1.40-bin.jar"
- jdbc_driver_class => "com.mysql.jdbc.Driver"
- jdbc_connection_string => "jdbc:mysql://localhost:3306/mydb"
- jdbc_user => "user"
- jdbc_password => "password"
- schedule => "* * * * *"
- statement => "SELECT * FROM employee"
- use_column_value => true
- tracking_column => "id"
- }
- }
- output {
- elasticsearch {
- index => "logstash"
- document_type => "soemtype"
- document_id => "%{uid}"
- hosts => ["localhost:9200"]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement