# Connecting Elasticsearch to Kibana

**URL:** <https://discuss.elastic.co/t/connecting-elasticsearch-to-kibana/272463>\
**Category:** Kibana\
**Created:** [May 8, 2021, 7:01am UTC](https://discuss.elastic.co/t/connecting-elasticsearch-to-kibana/272463 "2021-05-08T07:01:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jie\_olaf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jie_olaf/32/88428_2.png) [@jie\_olaf](https://discuss.elastic.co/u/jie_olaf)\
**Post date:** [May 8, 2021, 7:01am UTC](https://discuss.elastic.co/t/connecting-elasticsearch-to-kibana/272463/1 "2021-05-08T07:01:48Z")

</div>

I am trying to display the iris data in kibana by connecting to elasticsearch and creating an index called "iris" in R. I am taking the following steps:

Execute elasticsearch 5.5.3 batch file (localhost:9200 displays results on web)

Run the following code in R (connects and displays the iris search result successfully)

```auto
    library(elasticsearchr)

    es<- elastic("http://localhost:9200", "iris", "data")

    es %index% iris

    for_everything <- query('{ "match_all": {} }')

    es %search% for_everything

```

Run Kibana 5.5.3 batch file (checked yml file which says #elasticsearch.url: "[http://localhost:9200](http://localhost:9200)")

However, Kibana can't search the index "iris" as shown below:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/f/1fcec95f4bb4194e33fd928414858d61a3d148d0.png)

I tried running the logstash 5.5.3 batchfile before step 3, but it generated an error message on command prompt and closed. Another weird thing is that I don't see any index created on localhost:9200 on web, while searching for index in R shows results. Plus, below is the message I get when I start in step 1.

![image](https://us1.discourse-cdn.com/elastic/original/3X/8/9/89b9c1ac6f6d80eed818c092fcd2906d5d452767.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 10, 2021, 12:27am UTC](https://discuss.elastic.co/t/connecting-elasticsearch-to-kibana/272463/2 "2021-05-10T00:27:33Z")

</div>

Welcome to our community! 😃

> [@jie\_olaf](#):
>
> Execute elasticsearch 5.5.3 batch file

FYI 5.5 is _very_ old and has reached [EOL](https://www.elastic.co/support/eol). We would strongly suggest that the first thing that you do is upgrade your Elastic Stack and try again.

---

<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 7, 2021, 12:28am UTC](https://discuss.elastic.co/t/connecting-elasticsearch-to-kibana/272463/3 "2021-06-07T00:28:16Z")

</div>

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