How to use Elasticsearch SQL { XPACK } in Logstash

Please have a look here which had a similar request: Logstash http_poller POST Syntax