How to connect Neo4j from logstash using JDBC

Hi All, Could anyone help me on how to connect the neo4j from logstash using JDBC?

My sample config:
input {
jdbc {
jdbc_driver_library => "/usr/share/java/neo4j-jdbc-driver-4.0.2.jar"
jdbc_driver_class => "org.neo4j.jdbc.Driver"
#jdbc_driver_class => "org.neo4j.jdbc.http.HttpDriver"
jdbc_connection_string => "jdbc:neo4j://XX.XX.XX.XX:7687/"
jdbc_user => "neo4j"
jdbc_password => "Root@123"
statement => "MATCH (n:Locations) RETURN n LIMIT 125"
#statement => "SELECT * FROM Locations"
}
}
output {
stdout {}
file {
path => "/opt/output.txt"
}
}

1 Like

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