# Immediate logout after successful login on kibana

**URL:** <https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202>\
**Category:** Kibana\
**Created:** [November 26, 2018, 3:09pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202 "2018-11-26T15:09:55Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 26, 2018, 3:09pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/1 "2018-11-26T15:09:55Z")

</div>

HI Team,  
I'm using ELK version 6.2.1 and ES running on docker cluster. when i try to access my kibana with x-pack. its getting login and immediately get logout.

[http://nemokibana.com:8080/logout?next=%2Fapp%2Fkibana%23%2Fhome%3F\_g%3D()&msg=SESSION\_EXPIRED](http://nemokibana.com:8080/logout?next=%2Fapp%2Fkibana%23%2Fhome%3F_g%3D()&msg=SESSION_EXPIRED)

Anyone can suggest me why?

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [November 26, 2018, 9:38pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/2 "2018-11-26T21:38:38Z")

</div>

Could you try clearing your cookies and browser cache?

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 27, 2018, 9:35am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/3 "2018-11-27T09:35:30Z")

</div>

> [@Bargs](#):
>
> Could you try clearing your cookies and browser cache?

i tried to open in incognito mode also but facing same issue

---

<div class="post-metadata">

**Author:** ![saif](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saif/32/37431_2.png) [@saif](https://discuss.elastic.co/u/saif)\
**Post date:** [November 27, 2018, 9:59am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/4 "2018-11-27T09:59:04Z")

</div>

Are you using multiple kibana behind a load balancer?

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 27, 2018, 10:17am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/5 "2018-11-27T10:17:44Z")

</div>

yes, i have installed kibana on 3 server and coordinate also installed on those 3 server.

---

<div class="post-metadata">

**Author:** ![saif](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saif/32/37431_2.png) [@saif](https://discuss.elastic.co/u/saif)\
**Post date:** [November 27, 2018, 10:20am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/6 "2018-11-27T10:20:35Z")

</div>

Yes you have to change the sticky sessions value in your LB.

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 27, 2018, 10:34am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/7 "2018-11-27T10:34:06Z")

</div>

> [@saif](#):
>
> Yes you have to change the sticky sessions value in your LB.

could you tell very specific where i have to change. what i have to change like which location and what i have to add

---

<div class="post-metadata">

**Author:** ![saif](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saif/32/37431_2.png) [@saif](https://discuss.elastic.co/u/saif)\
**Post date:** [November 27, 2018, 10:56am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/8 "2018-11-27T10:56:51Z")

</div>

yes but what kind of LB you using ?

AWS LB ? Haproxy .... ??

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 27, 2018, 11:11am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/9 "2018-11-27T11:11:11Z")

</div>

> [@saif](#):
>
> AWS LB ? Haproxy .... ??

Actually, by using docker its running and didnt define any LB in my coordinate node

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [November 27, 2018, 6:55pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/10 "2018-11-27T18:55:52Z")

</div>

This shouldn't be necessary, Kibana doesn't store any user state on the server.

My best guess would be that the proxy between the browser and the Kibana server is stripping headers or modifying the request in some other way.

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 28, 2018, 9:48am UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/11 "2018-11-28T09:48:28Z")

</div>

> [@Bargs](#):
>
> My best guess would be that the proxy between the browser and the Kibana server is stripping headers or modifying the request in some other way.

can you help me out on this . what i have to modify in kibana configuration.

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [November 28, 2018, 8:02pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/12 "2018-11-28T20:02:56Z")

</div>

> [@Ganesh2303](#):
>
> yes, i have installed kibana on 3 server and coordinate also installed on those 3 server

You mentioned you have three Kibana servers. What are you using to load balance between those servers? What is sitting between Kibana and the client's browser?

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [November 29, 2018, 1:37pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/13 "2018-11-29T13:37:44Z")

</div>

> [@Bargs](#):
>
> You mentioned you have three Kibana servers. What are you using to load balance between those servers? What is sitting between Kibana and the client's browser?

kibana config:

```
server.name: kibana
server.host: "0"
elasticsearch.url: http://lpdosput020010.phx.aexp.com:9200
elasticsearch.username: elastic
elasticsearch.password: elastic
#elasticsearch.ssl.verificationMode: none
xpack.apm.ui.enabled: true
#xpack.monitoring.ui.container.elasticsearch.enabled: true
#xpack.security.enabled: true
#server.ssl.enabled: true
#server.ssl.certificate: /usr/share/kibana/config/kibana.example.org.crt
#server.ssl.key: /usr/share/kibana/config/kibana.example.org.key

```

ES coordinate node:

```
cluster.name: "docker-cluster"
node.name: lpdosput020010.phx.aexp.com.node
node.master: false
node.data: false
node.ingest: false

#network.host: 0.0.0.0
network.bind_host: 0.0.0.0
network.publish_host: 10.3.195.17

discovery.zen.ping.unicast.hosts: ["10.3.195.14","10.3.195.38","10.3.195.41","10.3.195.43","10.3.195.37","10.3.195.17"]
discovery.zen.minimum_master_nodes: 2
#xpack.license.self_generated.type: trial
xpack.security.enabled: true
#xpack.monitoring.enabled : true
#xpack.security.http.ssl.enabled: true
#xpack.security.http.ssl.key: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.key
#xpack.security.http.ssl.certificate: /usr/share/elasticsearch/config/elasticsearch/elasticsearch.crt
#xpack.security.http.ssl.client_authentication: none
#xpack.security.http.ssl.verification_mode: certificate

```

---

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [December 3, 2018, 12:44pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/14 "2018-12-03T12:44:29Z")

</div>

any help with below information?

---

<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:** [December 31, 2018, 12:44pm UTC](https://discuss.elastic.co/t/immediate-logout-after-successful-login-on-kibana/158202/15 "2018-12-31T12:44:37Z")

</div>

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