# Multitenancy in Kibana using x-pack

**URL:** <https://discuss.elastic.co/t/multitenancy-in-kibana-using-x-pack/134989>\
**Category:** Kibana\
**Created:** [June 7, 2018, 12:50pm UTC](https://discuss.elastic.co/t/multitenancy-in-kibana-using-x-pack/134989 "2018-06-07T12:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumit\_matta](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@sumit\_matta](https://discuss.elastic.co/u/sumit_matta)\
**Post date:** [June 7, 2018, 12:50pm UTC](https://discuss.elastic.co/t/multitenancy-in-kibana-using-x-pack/134989/1 "2018-06-07T12:50:29Z")

</div>

I want to implement multitenency in kibana at a more deep level.

eg :- there are 2 company

company1[index] -  
| type1[type] -  
| id [field]  
| name [field]  
| users\_access [user1,user2] [field]

company2[index] -  
| type1[type] -  
| id [field]  
| name [field]  
| users\_access [user3,user4] [field]

I want to integrate kibana in my frontend and user is already login to my front end  
can i achieve it with a proxy server??

---

<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:** [June 7, 2018, 7:11pm UTC](https://discuss.elastic.co/t/multitenancy-in-kibana-using-x-pack/134989/2 "2018-06-07T19:11:46Z")

</div>

Hi there,

It sounds like you have two tenants (company1 and company2). Do you want them to both have access to the same data, or do you want to restrict data access per tenant?

Kibana doesn't support a true multi-tenant architecture. Instead, it supports a multi-instance architecture, in which you can create multiple Kibana instances, each of which is configured to point to a different configuration index. In Kibana's `kibana.yml` config file, you can edit the `kibana.index` setting to be a unique index, which will be created if it doesn't already exist.

Once you have multiple kibana instances running (each with its own index), you can point each tenant to a unique index. In this situation, they'll both have access to the same Elasticsearch data. If you want to restrict the data each tenant has access to, you can use X-Pack Security to define users and roles to do so. For reference, a similar solution was proposed in [Does ElasticSearch/Kibana Support Multi Tenancy?](https://discuss.elastic.co/t/does-elasticsearch-kibana-support-multi-tenancy/25627?source_topic_id=76619).

Does this make sense?

I'm not sure I understand your question about your proxy server. What is it you're trying to do? Are you trying to use your existing authentication service to authenticate users for Kibana?

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:** [July 5, 2018, 7:11pm UTC](https://discuss.elastic.co/t/multitenancy-in-kibana-using-x-pack/134989/3 "2018-07-05T19:11:46Z")

</div>

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