我无法使用postgresql-9.5.4-1-windows-x64配置我的logstash-2.3.2。 这是我的log-config.conf文件
input {
jdbc {
# Postgres jdbc connection string to our database, mydb
jdbc_connection_string => "jdbc:postgresql://localhost:5432/ambule"
# The user we wish to execute our statement as
jdbc_user => "postgres"
# The path to our downloaded jdbc driver
jdbc_driver_library => "C:\Users\Administrator\Downloads\postgresql-9.4-1201-jdbc41.jar"
# The name of the driver class for Postgresql
jdbc_driver_class => "org.postgresql.Driver"
# our query
statement => "SELECT * from table1"
}
}
output {
stdout { codec => json_lines }
}
我得到了
error
答案 0 :(得分:0)
我猜异常本身就在jdbc_connection_string
内。如果你有这样的话怎么办:
jdbc_connection_string => "jdbc:postgresql://localhost:5432/user=ambule"
----------------------------------------------- ----------------------------------------- ^尝试添加用户< /强>
似乎错过了doc。希望它有所帮助!