Is there a way to log Elasticsearch queries issued by the elasticsearch-spark-30_2.12
library?
What I tried:
- Setting everything to
trace
log level. URLs of requests sent to Elasticsearch were printed, but not the body of the POST requests. Since all the query was in the body this hardly helps. - Enabling logging as documented for Elasticsearch High-Level Java Client, i.e. setting
logging.level.tracer=TRACE
. That did not produce any results.