# Kibana Slow Response After Enabling ELK Security

**URL:** <https://discuss.elastic.co/t/kibana-slow-response-after-enabling-elk-security/271182>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [April 25, 2021, 10:15am UTC](https://discuss.elastic.co/t/kibana-slow-response-after-enabling-elk-security/271182 "2021-04-25T10:15:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![k.karami](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@k.karami](https://discuss.elastic.co/u/k.karami)\
**Post date:** [April 25, 2021, 10:15am UTC](https://discuss.elastic.co/t/kibana-slow-response-after-enabling-elk-security/271182/1 "2021-04-25T10:15:43Z")

</div>

Hi,  
We have a basic license single node cluster (elastic 7.12.0 and kibana 7.12.0 ) on premise running on docker in a Linux node using http ( [http://localhost:9200](http://localhost:9200) and [http://localhost:5601](http://localhost:5601) ).

Couple of weeks ago I enabled the security in Elasticsearch and followed through security config guidelines. and every thing was just fine. After a couple of days we noticed that average kibana response times has been increased from 3-6 second to 20-40 seconds!  
First of all I suspected in elasticsearch container but everything is fine and queries are fast as before. But when I tested the kibana requests I noticed a weird thing:

I copied one of slow requests from my browser inspector and tested manually with postman.  
the request is taking at least 25 to 35 seconds (which is in fact Kibana response time not elastic), but When I remove the cookie header from request and add the basic Authentication to my request headers , the average response time decreases to 3-6 second , just like how it was before enabling security!  
I am challenging this issue couple of weeks and I have not been able to configure kibana, not to use cookie or to force all kibana requests to use Authorization header (basic …).

---

<div class="post-metadata">

**Author:** ![k.karami](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@k.karami](https://discuss.elastic.co/u/k.karami)\
**Post date:** [May 9, 2021, 5:37am UTC](https://discuss.elastic.co/t/kibana-slow-response-after-enabling-elk-security/271182/2 "2021-05-09T05:37:53Z")

</div>

It was the kibana bug in v 7.12.0 !  
I updated to kibana 7.12.1 and the problem solved!  
kibana query times are now the same as elastic and are not slow anymore.  
my server CPU load and usage is also decreased.

Nothing related is written in kibana 7.12.1 release note!

---

<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:** [June 6, 2021, 5:38am UTC](https://discuss.elastic.co/t/kibana-slow-response-after-enabling-elk-security/271182/3 "2021-06-06T05:38:45Z")

</div>

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