Get data from SQL Tables

In my Logstash i have this statement : statement => "Select table1, table2, table3"
I have this index : index => "test"
My question how to get data from table1 on index "test"? in Canva