Elasticsearch - Tracing requests

How to enable query logging in Spring-data-elasticsearch

After digging through the spring data code i found this helpful little logger called tracer (name not very unique)

By setting the following in application.properties

logging.level.tracer=TRACE

It will print out a full curl statement for the request along with full JSON the response from Elasticsearch.


Links to this note