Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input {
- jdbc {
- jdbc_connection_string => "jdbc:postgresql://@host:@port/@database"
- jdbc_user => "@username"
- jdbc_password => "@password"
- jdbc_driver_library => "C:postgresql-42.2.5.jar"
- jdbc_driver_class => "org.postgresql.Driver"
- statement => "SELECT * from table_name"
- }
- }
- output {
- elasticsearch {
- hosts => ["localhost:9200"]
- index => "table_name"
- }
- }
Add Comment
Please, Sign In to add comment