# Context: Gateway Timeout while click on View Surrounding Documents in kibana

**URL:** <https://discuss.elastic.co/t/context-gateway-timeout-while-click-on-view-surrounding-documents-in-kibana/135378>\
**Category:** Kibana\
**Created:** [June 11, 2018, 2:14pm UTC](https://discuss.elastic.co/t/context-gateway-timeout-while-click-on-view-surrounding-documents-in-kibana/135378 "2018-06-11T14:14:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravish9370](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ravish9370](https://discuss.elastic.co/u/ravish9370)\
**Post date:** [June 11, 2018, 2:14pm UTC](https://discuss.elastic.co/t/context-gateway-timeout-while-click-on-view-surrounding-documents-in-kibana/135378/1 "2018-06-11T14:14:08Z")

</div>

We’re seeing gateway timeout error while clicking on view surrounding documents button in Kibana for any given transaction. In management --\> Advance settings --\> under "context:tieBreakerFields" , I have added some fields "@timestamp, log\_type, x-global-transaction-id, message, uri\_path" for sorting of docs. Still getting the same error.

 ![kibana2](https://us1.discourse-cdn.com/elastic/original/3X/5/0/50fe0ebd723cd76bedcaa37068dcb08ed6d3779e.png) ![kibana](https://us1.discourse-cdn.com/elastic/original/3X/9/8/9899a25a36f6d12c2f8d1a8c8a4c9e44f81d645c.png). Need help to resolve it.

Error: Gateway Timeout  
at respond ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:111:161556](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:111:161556))  
at checkRespForFailure ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:111:160796](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:111:160796))  
at [https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:105:285566](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:105:285566)  
at processQueue ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:132456](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:132456))  
at [https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:133349](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:133349)  
at Scope.$digest ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:144239](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:144239))  
at Scope.$apply ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:147018](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:147018))  
at done ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:100026](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:100026))  
at completeRequest ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:104697](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:104697))  
at XMLHttpRequest.xhr.onload ([https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:105435](https://digital-logging.bjs.com/bundles/vendors.bundle.js?v=16588:58:105435))

---

<div class="post-metadata">

**Author:** ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)\
**Post date:** [June 11, 2018, 5:48pm UTC](https://discuss.elastic.co/t/context-gateway-timeout-while-click-on-view-surrounding-documents-in-kibana/135378/2 "2018-06-11T17:48:20Z")

</div>

Can you share what Kibana's route to Elasticsearch looks like? If there's a proxy or load balancer in front, you may need to increase the timeout.

---

<div class="post-metadata">

**Author:** ![ravish9370](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ravish9370](https://discuss.elastic.co/u/ravish9370)\
**Post date:** [June 11, 2018, 8:49pm UTC](https://discuss.elastic.co/t/context-gateway-timeout-while-click-on-view-surrounding-documents-in-kibana/135378/3 "2018-06-11T20:49:03Z")

</div>

We are connecting kibana to elastic search via load balancer. Idle timeout in LB is set to 60 secs. Also in kibana.yml , we have changed elastic search timeout to 180 sec. Still query is getting timeout in 30 seconds.  
Please see attached screenshot and kibana.yml ![ELB](https://us1.discourse-cdn.com/elastic/original/3X/e/d/ed37ee97874e5215e55260c623f57718ae74e67b.JPG)

 ![kibana_timeout](https://us1.discourse-cdn.com/elastic/original/3X/3/4/3437545fae6767f648cc3ee06dd32309b9ac9176.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 9, 2018, 8:49pm UTC](https://discuss.elastic.co/t/context-gateway-timeout-while-click-on-view-surrounding-documents-in-kibana/135378/4 "2018-07-09T20:49:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
