Hi ,
I am using a config file like below. In the input section I am pulling the data from different database. I want to perform join and combine results in filter section. basically I just want to merge the result set ,after that the combined data should go to one output .
input
{
jdbc
{
//select * from db1.table1
Logstash handles streams of events, so I do not think you can combine the data from the two inputs. You may however be able to use the jdbc streaming or jdbc static plugins to enrich the data generated through one of the inputs with data from the other database table.
lets say table1 from database1 has 100 rows having columns id and name. Similarly table2 from database2 has 100 rows having columns id, and city. I just want to perform join on both the tables and apply some filters on the result set, I can do this in sql file but I just want to know how logstash will behave to this scenario.
If you are performing the join in the database prior to the data being read into Logstash through the input plugin, you will not need the plugins I linked to.
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.