Error: org.postgresql.Driver not loaded. Any specific solution for this?


This error occurs, when I run the command logstash -f file.conf:
input {
jdbc {
jdbc_connection_string => 'jdbc:postgresql://localhost:5432/postgres'
jdbc_user => 'postgres'
jdbc_validate_connection => true
jdbc_driver_library => 'D:\Softwares\ES\logstash-6.6.1\postgresql-42.2.5'
jdbc_driver_class => 'org.postgresql.Driver'
statement => "SELECT * from EMP"
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => 'employees'
document_type => 'employee'
#document_id => "%{uid}"
}
stdout {
codec => rubydebug
}
}

Does changing \ to / in jdbc_driver_library help?

NO :frowning:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.