How do I load data from hive to elasticsearch 6.5 using logstash?

How can I load data from hive tables to elasticsearch? please help me with the logsatsh config file.

Have you looked at using the Elasticsearch Hadoop connector instead of Logstash?