This is my Elasticsearch-sql query. I executed this query using Kibana and getting valid output.
GET _sql?format=json { "query": "SELECT Count(appId) FROM eps_stbl_logs where cast(timestamp AS DATE) = TODAY() and status = 'COMPLETED'" }
This needs to be written in restHighLevelClient java API. Could you please help to write java API as I am new to ElasticSearch with Java.