# Trying to connect Kibana to Elasticsearch

**URL:** <https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273>\
**Category:** Kibana\
**Created:** [October 23, 2024, 8:45am UTC](https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273 "2024-10-23T08:45:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![summoner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/summoner/32/138051_2.png) [@summoner](https://discuss.elastic.co/u/summoner)\
**Post date:** [October 23, 2024, 8:45am UTC](https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273/1 "2024-10-23T08:45:21Z")

</div>

Hello again, I'm trying to connect my locally installed Kibana to a port-forwarded elastic instance (K8s pod), both are versions 7.7.0.  
I've already port forwarded the pod to port 9200, am met with this error:

```auto
 FATAL [mapper_parsing_exception] No handler for type [flattened] declared on field [state] :: .....

```

I'm wondering what is usually the cause of this error, what can I check and how can I resolve this to progress?

Any help is appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 23, 2024, 9:09am UTC](https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273/2 "2024-10-23T09:09:18Z")

</div>

What is the exact version of Elasticsearch you are using? What is the output of `GET /` when it starts?

But anyway, 7.7.0 is a way tooo old. At least move to 7.17 or better 8.15.

---

<div class="post-metadata">

**Author:** ![summoner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/summoner/32/138051_2.png) [@summoner](https://discuss.elastic.co/u/summoner)\
**Post date:** [October 23, 2024, 9:31am UTC](https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273/3 "2024-10-23T09:31:38Z")

</div>

Hey (again) David,

The response I get from making a GET request to [https://127.0.0.1:9200](https://127.0.0.1:9200) is

```auto
{
    "name": "zeep zorp",
    "cluster_name": "blablabla",
    "cluster_uuid": "beep beep boop",
    "version": {
        "number": "7.7.0",
        "build_flavor": "oss",
        "build_type": "tar",
        "build_hash": "unknown",
        "build_date": "2024-09-13T10:06:26.470176Z",
        "build_snapshot": false,
        "lucene_version": "8.5.1",
        "minimum_wire_compatibility_version": "6.8.0",
        "minimum_index_compatibility_version": "6.0.0-beta1"
    },
    "tagline": "You Know, for Search"
}

```

Unfortunately, I can't upgrade this elasticsearch instance, someone else is using it ☹ is this error a bug or something on ancient versions of elastic?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 23, 2024, 9:49am UTC](https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273/4 "2024-10-23T09:49:18Z")

</div>

I think it's because of this:

```
    "build_flavor": "oss",

```

This is not the default distribution of Elastic which contains Elastic basic (free) licensed code. And I believe that this feature has been added under the Elastic license only.

So you need to switch to the default distribution instead of the oss one which has much less features.

---

<div class="post-metadata">

**Author:** ![summoner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/summoner/32/138051_2.png) [@summoner](https://discuss.elastic.co/u/summoner)\
**Post date:** [October 24, 2024, 12:44pm UTC](https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273/5 "2024-10-24T12:44:26Z")

</div>

Do both kibana and elastic not only have to be on compatible/same versions but also have the same build flavor?

I've just pulled a Docker image of kibana oss 7.7.0, I'm trying to connect it to the remote elastic instance now (port forwarded locally to port 9200), but it's not picking up. I assume my Docker command is correct?  
`docker run -p 5601:5601 docker.elastic.co/kibana/kibana-oss:7.7.0`

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 24, 2024, 1:15pm UTC](https://discuss.elastic.co/t/trying-to-connect-kibana-to-elasticsearch/369273/6 "2024-10-24T13:15:27Z")

</div>

> [@summoner](#):
>
> Do both kibana and elastic not only have to be on compatible/same versions but also have the same build flavor?

Yes.

> [@summoner](#):
>
> I've just pulled a Docker image of kibana oss 7.7.0

May be this could work, but anyway you should not use that. Latest elasticsearch version (from 7.11 to 7.17 and now 8.15) don't have this `oss` flavor anymore. So all your efforts here to make that old version working are IMHO a bit of useless.

Also note that 7.7 did not receive all the security patches and bug fixes...
