Connect to sql

I am new here
I would like to make a query in a sql database and store the results of this query in elastic, can someone help me to configure the application to work this way?

Welcome to our community! :smiley:

What application are you using?

You might want to use logstash and its jdbc input.

See Jdbc input plugin | Logstash Reference [7.12] | Elastic