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 => "ankit"
- # The path to our downloaded jdbc driver
- jdbc_driver_library => "/home/ankit/Downloads/mysql-connector-java-5.1.38.jar"
- jdbc_driver_class => "com.mysql.jdbc.Driver"
- #run logstash at an interval of on minute
- #schedule => "* * * * * *"
- # our query
- statement => "SELECT * FROM ghijkl"
- }
- jdbc {
- jdbc_connection_string => "jdbc:mysql://localhost:3306/testdb"
- # The user we wish to execute our statement as
- jdbc_user => "root"
- jdbc_password => "ankit"
- # The path to our downloaded jdbc driver
- jdbc_driver_library => "/home/ankit/Downloads/mysql-connector-java-5.1.38.jar"
- jdbc_driver_class => "com.mysql.jdbc.Driver"
- #run logstash at an interval of on minute
- #schedule => "* * * * * *"
- # our query
- statement => "SELECT * FROM abcdef"
- }
- }
Add Comment
Please, Sign In to add comment