WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Whilst developing with Elasticsearch using NEST, it can be extremely valuable to see the requests that NEST generates and sends to Elasticsearch, as well as the responses returned.
There are a couple of popular ways of capturing this information
In addition to logging requests and responses, Elasticsearch 5.0+ also sends back warning headers in the response, to notify you if you are using a feature that is marked as deprecated.