Jdbc river driver in Elasticsearch 6.x

You should have a look at logstash maybe and its jdbc input plugin.