# Kibana status code 304

**URL:** <https://discuss.elastic.co/t/kibana-status-code-304/184129>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [June 4, 2019, 9:10am UTC](https://discuss.elastic.co/t/kibana-status-code-304/184129 "2019-06-04T09:10:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aristarkh\_Bushkov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aristarkh_bushkov/32/45475_2.png) [@Aristarkh\_Bushkov](https://discuss.elastic.co/u/Aristarkh_Bushkov)\
**Post date:** [June 4, 2019, 9:10am UTC](https://discuss.elastic.co/t/kibana-status-code-304/184129/1 "2019-06-04T09:10:43Z")

</div>

Hello. I try to configure ELK stack 7.1.0 on docker.  
I have 3 master node and 3 worker nodes.  
Elastic stack health good. When i Started Kibana like a service and try to login on webpage I have this error:  
servers\_kibana1.0.bn958cduaf3z@sys00219 | {"type":"response","@timestamp":"2019-06-04T08:40:29Z","tags":,"pid":1,"method":"get","statusCode":304,"req":{"url":"/built\_assets/css/plugins/timelion/index.light.css","method":"get","headers":{"host":"10.100.203.154:20602","user-agent":"Mozilla/5.0 (X11; Linux x86\_64; rv:67.0) Gecko/20100101 Firefox/67.0","accept":"text/css,_/_;q=0.1","accept-language":"en-US,en;q=0.5","accept-encoding":"gzip, deflate","referer":"[http://10.100.203.154:20602/login?next=%2F","connection":"keep-alive","if-none-match":""52d61c464aebb0b4469991ae04189c1f5c530f8c-/-gzip""},"remoteAddress":"10.255.0.3","userAgent":"10.255.0.3","referer":"http://10.100.203.154:20602/login?next=%2F"},"res":{"statusCode":304,"responseTime":2,"contentLength":9},"message":"GET](http://10.100.203.154:20602/login?next=%2F%22,%22connection%22:%22keep-alive%22,%22if-none-match%22:%22%2252d61c464aebb0b4469991ae04189c1f5c530f8c-/-gzip%22%22%7D,%22remoteAddress%22:%2210.255.0.3%22,%22userAgent%22:%2210.255.0.3%22,%22referer%22:%22http://10.100.203.154:20602/login?next=%2F%22%7D,%22res%22:%7B%22statusCode%22:304,%22responseTime%22:2,%22contentLength%22:9%7D,%22message%22:%22GET) /built\_assets/css/plugins/timelion/index.light.css 304 2ms - 9.0B"}

my kibana yml file:

```
server.host: "0"
elasticsearch.hosts: ["http://srv_master1:9200"]
elasticsearch.username: kibana
elasticsearch.password: qweasd
xpack.monitoring.ui.container.elasticsearch.enabled: true

```

curl -X GET -u elastic:\*\*\*\*\* "localhost:9403/"  
{  
"name" : "sys00224-srv\_master11",  
"cluster\_name" : "elk1",  
"cluster\_uuid" : "Mqwsr55qR5GjyrfRFQu7VA",  
"version" : {  
"number" : "7.1.0",  
"build\_flavor" : "default",  
"build\_type" : "docker",  
"build\_hash" : "606a173",  
"build\_date" : "2019-05-16T00:43:15.323135Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.0.0",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

curl -X GET -u elastic:\*\*\*\*\* "localhost:9403/\_cat/shards"  
.kibana\_1 0 p STARTED 3 23.9kb 10.4.10.13 sys00224-srv\_worker11  
.kibana\_1 0 r STARTED 3 19.7kb 10.4.10.14 sys00225-srv\_worker12  
.security-7 0 p STARTED 10 54.2kb 10.4.10.15 sys00219-srv\_worker13  
.security-7 0 r STARTED 10 54.2kb 10.4.10.13 sys00224-srv\_worker11  
.kibana\_task\_manager 0 r STARTED 2 39.2kb 10.4.10.15 sys00219-srv\_worker13  
.kibana\_task\_manager 0 p STARTED 2 39.2kb 10.4.10.14 sys00225-srv\_worker12

---

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [June 4, 2019, 6:05pm UTC](https://discuss.elastic.co/t/kibana-status-code-304/184129/2 "2019-06-04T18:05:01Z")

</div>

Hi, that doesn't look like an error? It looks like the response is coming from a CSS file and the `304` status is just indicating that the file is cached on your browser. Are you experiencing an actual issue logging into Kibana?

---

<div class="post-metadata">

**Author:** ![Aristarkh\_Bushkov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aristarkh_bushkov/32/45475_2.png) [@Aristarkh\_Bushkov](https://discuss.elastic.co/u/Aristarkh_Bushkov)\
**Post date:** [June 5, 2019, 4:56am UTC](https://discuss.elastic.co/t/kibana-status-code-304/184129/3 "2019-06-05T04:56:20Z")

</div>

Hi, yes i exactly have issue logging into kibana. When i logging in , the web page return me to main page . After clear cache i have the same

---

<div class="post-metadata">

**Author:** ![Aristarkh\_Bushkov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aristarkh_bushkov/32/45475_2.png) [@Aristarkh\_Bushkov](https://discuss.elastic.co/u/Aristarkh_Bushkov)\
**Post date:** [June 6, 2019, 7:15am UTC](https://discuss.elastic.co/t/kibana-status-code-304/184129/4 "2019-06-06T07:15:51Z")

</div>

I solve the problem! I don't add xpack.security.encryptionKey: to kibana.yml

---

<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 4, 2019, 7:15am UTC](https://discuss.elastic.co/t/kibana-status-code-304/184129/5 "2019-07-04T07:15:56Z")

</div>

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