# Keycloak with ELK stack

**URL:** <https://discuss.elastic.co/t/keycloak-with-elk-stack/299311>\
**Category:** Kibana\
**Created:** [March 10, 2022, 9:34am UTC](https://discuss.elastic.co/t/keycloak-with-elk-stack/299311 "2022-03-10T09:34:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shivendra95](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@shivendra95](https://discuss.elastic.co/u/shivendra95)\
**Post date:** [March 10, 2022, 9:34am UTC](https://discuss.elastic.co/t/keycloak-with-elk-stack/299311/1 "2022-03-10T09:34:24Z")

</div>

I'm trying to use Keycloak to login into kibana dashboard. Can anyone help me on this as some of the solutions I found on the forum were not working out for me.

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [March 11, 2022, 6:01am UTC](https://discuss.elastic.co/t/keycloak-with-elk-stack/299311/2 "2022-03-11T06:01:10Z")

</div>

HI @shivendra95

Could you pls let me know the error/problem you are facing while opening the kibana dashboard with keycloak?

Br,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![shivendra95](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@shivendra95](https://discuss.elastic.co/u/shivendra95)\
**Post date:** [March 11, 2022, 6:14am UTC](https://discuss.elastic.co/t/keycloak-with-elk-stack/299311/3 "2022-03-11T06:14:06Z")

</div>

Hi @harshbajaj16 ,

I'm in the process of integrating keycloak with ELK, currently I'm not aware as to what configurations are needed to be added in Elasticsearch and Kibana to integrate keycloak.  
So if you can help in telling the configurations required to be added that will be of great use to me.

Thanks

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [March 11, 2022, 6:23am UTC](https://discuss.elastic.co/t/keycloak-with-elk-stack/299311/4 "2022-03-11T06:23:17Z")

</div>

Hi @shivendra95 ,

### How it works

In 3 steps you can achieve this:

1. External traffic is directed to the keycloak proxy. The proxy decides based on it configuration if the destination needs authentication.
2. The keycloak Proxy work together with Keycloak and redirects the user to the authentication server so the user can login.
3. After a successful login the proxy forwards the user to kibana instance.

Below is the external link which can help you. You may ignore the docker-compose file if you are not using docker.

> **[Secure kibana dashboards using keycloak](https://aboullaite.me/secure-kibana-keycloak/)**
>
> Kibana is an open source data visualization plugin for Elasticsearch. It provides visualization capabilities on top of the content indexed on an Elasticsearch cluster. Users can create bar, line, and scatter plots, or pie charts and maps on top of...

Br,  
Harsh Bajaj

---

<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:** [April 8, 2022, 6:24am UTC](https://discuss.elastic.co/t/keycloak-with-elk-stack/299311/5 "2022-04-08T06:24:17Z")

</div>

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