# How to run a second Kibana instance?

**URL:** <https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303>\
**Category:** Kibana\
**Created:** [July 24, 2018, 6:38am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303 "2018-07-24T06:38:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [July 24, 2018, 6:38am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303/1 "2018-07-24T06:38:07Z")

</div>

Hi,

How can I run a second Kibana instance on the same host? I've been searching for hours but have been unable to find any answers.

I tried copying kibana.yml to kibana2.yml and change the port number to 5602 and default .kibana index to defaultindex2 but whe I tried to access myip:5602 the page doesn't load.

I'm trying to achieve some form of multitenancy where dashboards aren't visable to others. I'm also running xpack but that doesn't prevent you from seeing the dashboard (only from seeing the actual data) hence why I want to run a second instance.

---

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [July 24, 2018, 6:41am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303/2 "2018-07-24T06:41:34Z")

</div>

Logically, what you explained should work. How are you running the two instances? Using the zip version of Kibana i suppose? What is the error you see?

Also, how are you planning to disable dashboards on the second instance? Are you building Kibana separately?

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [July 24, 2018, 6:47am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303/3 "2018-07-24T06:47:20Z")

</div>

I installed Kibana using the debian package installer (not a linux expert). The error the browser shows is the page cannot be found.

What do you mean by building Kibana separately? My understanding is that all dashboards are visualizations are stored in the .kibana index. So changing the default index for the second instance means all dashboards will be stored in that index and only visible to the instance running on :5602 while the default index is only visible to :5601.

---

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [July 24, 2018, 6:50am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303/4 "2018-07-24T06:50:27Z")

</div>

I don't think you will be able to install two versions of Kibana as a service. Using the deb or rpm version will install Kibana as a service.

Can you try the same thing by downloading the Kibana zip file and running it from two separate command lines? (Ensure that you have two different copies of the Kibana zip extract)

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [July 24, 2018, 7:14am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303/5 "2018-07-24T07:14:38Z")

</div>

Thanks. It was that simple. Both instances are running fine and both appear to be able to access xpack features as well.

Just need to figure out how to autostart this was.

---

<div class="post-metadata">

**Author:** ![NerdSec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nerdsec/32/22056_2.png) [@NerdSec](https://discuss.elastic.co/u/NerdSec)\
**Post date:** [July 24, 2018, 7:18am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303/6 "2018-07-24T07:18:39Z")

</div>

Sure! You can do this using systemd.

> **[Creating a Linux service with systemd – Benjamin Morel – Medium](https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)**
>
> While writing web applications, I often need to offload compute-heavy tasks to an synchronous worker script, schedule tasks for later, or…

---

<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:** [August 21, 2018, 7:18am UTC](https://discuss.elastic.co/t/how-to-run-a-second-kibana-instance/141303/7 "2018-08-21T07:18:41Z")

</div>

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