@manjur To do that we recommend Logstash and the JDBC inputs since you usually need to do more work on the data to ingest it in Elasticsearch correctly, Logstash data manipulations options and filters are well suited for that. Is there any reason why it doesn't work for you?
There was a community beat to interact with SQL, but I haven't used it.