Title: Improve logging for ElasticSearch failed queries
Author: WordPress VIP Documentation
Published: January 28, 2021
Last modified: August 5, 2025

---

 1. [Changelog](https://docs.wpvip.com/changelog/)
 2. [VIP MU plugins [Production]](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)
 3. Improve logging for ElasticSearch failed queries

# Improve logging for ElasticSearch failed queries

---

 28 January 2021

22:00:43 GMT+0000

 [ VIP MU plugins [Production] ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/)

 [ Permalink  ](https://docs.wpvip.com/changelog/vip-mu-plugins-production/improve-logging-for-elasticsearch-failed-queries/)

When a VIP Search query fails, it gets logged to Logstash so we can investigate 
the problems. Now we are also logging the full query sent to ElasticSearch and the
PHP backtrace, so we can have much more detailed information about the root cause.

[https://github.com/Automattic/vip-go-mu-plugins/pull/1954](https://github.com/Automattic/vip-go-mu-plugins/pull/1954)