# Is there a Kibana health API for load balancer?

**URL:** <https://discuss.elastic.co/t/is-there-a-kibana-health-api-for-load-balancer/124862>\
**Category:** Kibana\
**Created:** [March 20, 2018, 8:38pm UTC](https://discuss.elastic.co/t/is-there-a-kibana-health-api-for-load-balancer/124862 "2018-03-20T20:38:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![android.kc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/android.kc/32/58806_2.png) [@android.kc](https://discuss.elastic.co/u/android.kc)\
**Post date:** [March 20, 2018, 8:38pm UTC](https://discuss.elastic.co/t/is-there-a-kibana-health-api-for-load-balancer/124862/1 "2018-03-20T20:38:14Z")

</div>

Tried the following URL [https://localhost:5601/[token]/api/status](https://localhost:5601/%5Btoken%5D/api/status) on 5.5.2 which works fine and returned the health information. However, the is changed every time after restarting kibana instances. Is there a way to have a static URL without the token in the URL to check the health of Kibana instances?

Thanks,  
KC

---

<div class="post-metadata">

**Author:** ![vvlad](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@vvlad](https://discuss.elastic.co/u/vvlad)\
**Post date:** [March 21, 2018, 10:04am UTC](https://discuss.elastic.co/t/is-there-a-kibana-health-api-for-load-balancer/124862/2 "2018-03-21T10:04:34Z")

</div>

Depends on what you want to achieve. If you just want to let the LB know if the node is OK, check the status returned by /status:

```bash
kibana-b :: ~ » curl -I http://127.0.0.1:5601/status
HTTP/1.1 200 OK
kbn-name: kibana
kbn-version: 6.2.3
...

```

If you want detailed status, just omit the token:

```bash
kibana-b :: ~ » curl -s http://127.0.0.1:5601/api/status | json_pp
{
   "version" : {
      "number" : "6.2.3",
      "build_snapshot" : false,
      "build_number" : 16602,
      "build_hash" : "2582ab6060209a9fc6a67275fc52ce08ae74c957"
   },
   "status" : {
      "overall" : {
         "since" : "2018-03-21T09:52:41.957Z",
         "nickname" : "Looking good",
         "state" : "green",
         "title" : "Green",
         "icon" : "success"
      },
      "statuses" : [
         {
            "message" : "Ready",
            "since" : "2018-03-21T09:52:41.957Z",
            "id" : "plugin:kibana@6.2.3",
            "state" : "green",
            "icon" : "success"
         },
...

```

---

<div class="post-metadata">

**Author:** ![android.kc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/android.kc/32/58806_2.png) [@android.kc](https://discuss.elastic.co/u/android.kc)\
**Post date:** [March 21, 2018, 5:33pm UTC](https://discuss.elastic.co/t/is-there-a-kibana-health-api-for-load-balancer/124862/3 "2018-03-21T17:33:31Z")

</div>

Thanks vvlad! It looks 6.2.x has better support for checking the health status, while 5.5.2 has different results as below. For the details of the status, it seems the token cannot be ignored in 5.5.2. is there a way to omit the token in 5.5.2?

```auto
curl -I localhost:5601/status
HTTP/1.1 302 Found
location: https://localhost:5601/status
cache-control: no-cache
Date: Wed, 21 Mar 2018 17:23:22 GMT
Connection: keep-alive

```

```auto
curl -k -s https://localhost:5601/izw/api/status | json_pp
{
   "status" : {
      "overall" : {
         "since" : "2018-03-21T17:23:02.492Z",
         "state" : "green",
         "title" : "Green",
         "nickname" : "Looking good",
         "icon" : "success"
      },
      "statuses" : [
         {
            "message" : "Ready",
            "id" : "ui settings",
            "since" : "2018-03-21T17:23:02.607Z",
            "state" : "green",
            "icon" : "success"
         },
         {
            "state" : "green",
            "since" : "2018-03-21T17:23:02.492Z",
            "id" : "plugin:kibana@5.5.2",
            "message" : "Ready",
            "icon" : "success"
         },
         {
...

```

```auto
curl -k -s https://localhost:5601/api/status | json_pp
{
   "statusCode" : 404,
   "error" : "Not Found"
}

curl -s http://localhost:5601/api/status | json_pp
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/bin/json_pp5.18 line 45.

```

---

<div class="post-metadata">

**Author:** ![vvlad](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@vvlad](https://discuss.elastic.co/u/vvlad)\
**Post date:** [March 21, 2018, 5:54pm UTC](https://discuss.elastic.co/t/is-there-a-kibana-health-api-for-load-balancer/124862/4 "2018-03-21T17:54:33Z")

</div>

I’m not particularly familiar with kibana 5. I just poked around version 6.2 for this.  
As far as I can remember, in case something was wrong, the pages wouldn’t return HTTP 200 even in version 5. I used to just point the load balancer health checker to the root URL.

---

<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 18, 2018, 5:54pm UTC](https://discuss.elastic.co/t/is-there-a-kibana-health-api-for-load-balancer/124862/5 "2018-04-18T17:54:39Z")

</div>

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