# Problems running Kibana 5 as a web service with IIS

**URL:** <https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764>\
**Category:** Kibana\
**Created:** [January 6, 2017, 9:45am UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764 "2017-01-06T09:45:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annie178](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Annie178](https://discuss.elastic.co/u/Annie178)\
**Post date:** [January 6, 2017, 9:45am UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764/1 "2017-01-06T09:45:18Z")

</div>

Hi all,

I've been trying to set up kibana 5 running as a web service using Microsoft IIS. I have set up a reverse proxy and I can access the kibana site through the IIS default web browser. However, when I access kibana this way, the index patterns are mixed up, with some indices appearing as data in the incorrect index pattern.

I presume this may be a problem with the way the kibana config file is configured, as I have never changed the config file to tell kibana that it will be accessed through another port via the IIS.

Does anyone know how to fix this problem, so that accessing kibana 5 through the default port (5601)and through the IIS web service port (80) will yield the same results?

I'm extremely grateful for any help!

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [January 6, 2017, 7:14pm UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764/2 "2017-01-06T19:14:17Z")

</div>

Hey Anne,

First, are you able to visit localhost:5601? And do you still see the same problems when you do that? I'm trying to figure out if the reverse proxy is really related to the problem you're experiencing... it does seem like an odd symptom to be related to your reverse proxy setup!

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![Annie178](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Annie178](https://discuss.elastic.co/u/Annie178)\
**Post date:** [January 9, 2017, 11:47am UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764/3 "2017-01-09T11:47:57Z")

</div>

Hi CJ,

Thanks for replying.

I have changed localhost to my IP address, but yes, I can visit myIP:5601 and I have no problems when I do that. All the index patterns and indexes are all ordered correctly and there are no problems.

However, when I access kibana through the reverse proxy, there are many errors. Originally the indexes were all mixed up. Now when I enter through the reverse proxy, no data is shown and it flags an error regarding shards. Everything works fine when I access it using myIP:5601.

Thanks,

Anne Marie

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [January 9, 2017, 6:40pm UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764/4 "2017-01-09T18:40:55Z")

</div>

Hi Anne, would you mind listing all of the errors you're seeing, and posting the actual error messages?

You mentioned that originally all of the indexes were mixed up. Are they still mixed up?

You also mentioned that now you're seeing an error regarding shards. Is this new behavior, or did this error also appear earlier when the indexes were mixed up? If this is new behavior, did you make any changes that could have caused/affected this change in behavior?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![Annie178](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Annie178](https://discuss.elastic.co/u/Annie178)\
**Post date:** [January 23, 2017, 4:18pm UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764/5 "2017-01-23T16:18:57Z")

</div>

Hi,

I got this problem sorted actually by using Application Request Routing Cache to create rewrite rules rather than writing them explicitly.

Thanks for all your help!

Anne Marie

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [January 23, 2017, 4:35pm UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764/6 "2017-01-23T16:35:45Z")

</div>

That's great to hear! Thank you for sharing your solution, Anne.

Thanks,  
CJ

---

<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:** [February 20, 2017, 4:35pm UTC](https://discuss.elastic.co/t/problems-running-kibana-5-as-a-web-service-with-iis/70764/7 "2017-02-20T16:35:44Z")

</div>

Closed on February 20, 2017, 4:35pm UTC

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