Aggregation 504 bad gateway

Sounds like an error message from nginx not elasticsearch.