# Getting bad request(400) error during \_search of Dashboard

**URL:** <https://discuss.elastic.co/t/getting-bad-request-400-error-during-search-of-dashboard/127990>\
**Category:** Kibana\
**Created:** [April 13, 2018, 1:54pm UTC](https://discuss.elastic.co/t/getting-bad-request-400-error-during-search-of-dashboard/127990 "2018-04-13T13:54:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![naveenk](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@naveenk](https://discuss.elastic.co/u/naveenk)\
**Post date:** [April 13, 2018, 1:54pm UTC](https://discuss.elastic.co/t/getting-bad-request-400-error-during-search-of-dashboard/127990/1 "2018-04-13T13:54:35Z")

</div>

I am getting Bad request whenever try to view dashboard in kibana. When dig more, I observed following things.

1. I will get this error only when elastic.url is accessed through proxy
2. When i executed same query through POST master i get bad request. And it says query invalid

Note: i have whitelisted all header content in kibana.yml. Since missing header might also cause some problem.

@magnusbaeck Please can you help

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [April 13, 2018, 6:16pm UTC](https://discuss.elastic.co/t/getting-bad-request-400-error-during-search-of-dashboard/127990/2 "2018-04-13T18:16:09Z")

</div>

@naveenk

what do the kibana-logs and elasticsearch logs say? Is ES getting the requests and responding to them?

This seems more of an issue with the reverse-proxy than with your configuration. Setting the correct `elasticsearch.url` in the kibana.yml should be sufficient.

---

<div class="post-metadata">

**Author:** ![naveenk](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@naveenk](https://discuss.elastic.co/u/naveenk)\
**Post date:** [April 14, 2018, 12:51am UTC](https://discuss.elastic.co/t/getting-bad-request-400-error-during-search-of-dashboard/127990/3 "2018-04-14T00:51:54Z")

</div>

@thomasneirynck

Reverse proxy seems to be fine. I have placed a log in actual api which is handling \_search.It is reaching that point. Earlier i was not getting "Cookie" headers. Due to which authentication was failing. Later i whitelisted Cookie header in kibana.yml configuration I guess its more to do with header or other information. Since \_search is internal call of kibana.

Definately i will take care of proxy part. Please can you let me know if we have to use elastic.url as proxy. Then what are the changes required in kibana.yml to acheive the same. I am using ELK version 6.0.0.

Thanks in advance.

---

<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:** [May 12, 2018, 12:52am UTC](https://discuss.elastic.co/t/getting-bad-request-400-error-during-search-of-dashboard/127990/4 "2018-05-12T00:52:06Z")

</div>

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