# Heartbeat kibana http check not working

**URL:** <https://discuss.elastic.co/t/heartbeat-kibana-http-check-not-working/253136>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring, heartbeat\
**Created:** [October 23, 2020, 1:33pm UTC](https://discuss.elastic.co/t/heartbeat-kibana-http-check-not-working/253136 "2020-10-23T13:33:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rp346](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rp346/32/53882_2.png) [@rp346](https://discuss.elastic.co/u/rp346)\
**Post date:** [October 23, 2020, 1:33pm UTC](https://discuss.elastic.co/t/heartbeat-kibana-http-check-not-working/253136/1 "2020-10-23T13:33:33Z")

</div>

I have setup heartbeat to monitor kibana instance running in the same namespace (kubernetes) with following config

```auto
    - type: http
      enabled: true
      name: "kibana"
      tags: ["kibana"]
      fields:
        env: production
      schedule: '@every 5s'
      urls: ["http://kibana:5601"]
      ipv4: true
      ipv6: true
      mode: any
      timeout: 20s
      check.request.method: "GET"
      check.response.status: [200]

```

But this check doesn't passes. This is how it shows always

 ![Screen Shot 2020-10-23 at 9.28.45 AM](https://us1.discourse-cdn.com/elastic/original/3X/5/9/590d17a9166e062f2285f76ed9555ee61e5930f9.png)

But I am able to `curl http://kibana:5601` from heartbeat pods, here is the sample.

```auto
    $ curl -v http://kibana:5601
    * About to connect() to kibana port 5601 (#0)
    * Trying 192.30.240.53...
    * Connected to kibana (192.30.240.53) port 5601 (#0)
    > GET / HTTP/1.1
    > User-Agent: curl/7.29.0
    > Host: kibana:5601
    > Accept: */*
    >
    < HTTP/1.1 302 Found
    < location: /spaces/enter
    < kbn-name: kibana.example.com
    < kbn-license-sig: 3f7bcc39e99265eb9150fe74242370b9b4bca5f1e6e9048b5193b88a1acea11b
    < kbn-xpack-sig: 0213ac89bd6c118858950458439d872f
    < cache-control: private, no-cache, no-store, must-revalidate
    < content-length: 0
    < Date: Fri, 23 Oct 2020 13:30:13 GMT
    < Connection: keep-alive
    <
    * Connection #0 to host kibana left intact

```

What I am missing here ?

similar check for **elasticsearch** works fine.

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [October 23, 2020, 3:27pm UTC](https://discuss.elastic.co/t/heartbeat-kibana-http-check-not-working/253136/2 "2020-10-23T15:27:08Z")

</div>

Hi @rp346,

It seems like you are checking against code 200, but instance is returning 302 status code.

Regards

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [October 23, 2020, 3:31pm UTC](https://discuss.elastic.co/t/heartbeat-kibana-http-check-not-working/253136/3 "2020-10-23T15:31:21Z")

</div>

Also if there are any redirects involved you may have to use

> **[HTTP options | Heartbeat Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/beats/heartbeat/current/monitor-http-options.html#monitor-http-max-redirects)**

Good luck

---

<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:** [November 20, 2020, 3:31pm UTC](https://discuss.elastic.co/t/heartbeat-kibana-http-check-not-working/253136/4 "2020-11-20T15:31:38Z")

</div>

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