As a workaround, you could create a view on the SQL side that performs the join and then pull that view with logstash. The view is a virtual table, no added storage.
input {
jdbc {
jdbc_validate_connection => true
jdbc_connection_string => "jdbc:mysql://server1:3306/db_name"
jdbc_user => "xxx"
jdbc_password => "xxx"
jdbc_driver_library => "/root/mysql-connector-java-5.1.47/mysql-connector-java-5.1.47.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
### get query with joining two table. you can do what ever your select suppose to do. contact your database guy for it if you not sure.
statement => "select p.username, q.host, q.port from table1 p, table2 q where p.name=q.name"
}
}
My ELK stack is on 7.0 version . So for current join requirement , do i need to install SQL JDBC connector or it's pre installed ?
what else i need to install to do join of two indexes ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.