Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- jdbc {
- jdbc_connection_string => "jdbc:mysql://localhost:3306/testdb"
- # The user we wish to execute our statement as
- jdbc_user => "root"
- jdbc_password => "123456"
- # The path to our downloaded jdbc driver
- jdbc_driver_library => "/home/comp/Downloads/mysql-connector-java-5.1.38.jar"
- jdbc_driver_class => "com.mysql.jdbc.Driver"
- # our query
- statement => "SELECT * FROM testtable"
- }
- }
- output {
- stdout { codec => json_lines }
- elasticsearch {
- "hosts" => "localhost:9200"
- "index" => "test-migrate"
- "document_type" => "data"
- }
- }
Add Comment
Please, Sign In to add comment