# Working example for Kabina and ElasticSearch

**URL:** https://discuss.elastic.co/t/working-example-for-kabina-and-elasticsearch/167365
**Category:** Kibana
**Created:** [February 6, 2019, 10:40pm UTC](https://discuss.elastic.co/t/working-example-for-kabina-and-elasticsearch/167365 "2019-02-06T22:40:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Edmond\_Dante](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@Edmond\_Dante](https://discuss.elastic.co/u/Edmond_Dante)
#### Post date: [February 6, 2019, 10:40pm UTC](https://discuss.elastic.co/t/working-example-for-kabina-and-elasticsearch/167365/1 "2019-02-06T22:40:37Z")

</div>

I try to learn how to use ElasticSearch and Kibana ref to this link:  
[https://www.humankode.com/asp-net-core/logging-with-elasticsearch-kibana-asp-net-core-and-docker](https://www.humankode.com/asp-net-core/logging-with-elasticsearch-kibana-asp-net-core-and-docker) with a minor difference by using docker-compose.

However, I am not able to make kibana service talks to elastic service and here is the error:  
Unable to revive connection: [http://elasticsearch-x:9298](http://elasticsearch-x:9298)  
I could not find much help to bypass this error. Anyone know well about ElasticSearch and Kibana can give me a hint to fix my docker-compose?

Thanks In advance

version: '3.4'  
services:  
elasticsearch:  
image: [docker.elastic.co/elasticsearch/elasticsearch:6.6.0](http://docker.elastic.co/elasticsearch/elasticsearch:6.6.0)  
container\_name: elasticsearch-x  
ports:  
- 9298:9200  
environment:  
- ELASTICSEARCH\_USERNAME=elastic  
- ELASTIC\_PASSWORD=changeme  
- CLUSTER\_NAME=docker-cluster  
- NETWORK\_HOST=0.0.0.0  
networks:  
- elasticsearch-network  
kibana:  
image: [docker.elastic.co/kibana/kibana:6.6.0](http://docker.elastic.co/kibana/kibana:6.6.0)  
container\_name: kibana-x  
environment:  
- ELASTICSEARCH\_USERNAME=kibana  
- ELASTICSEARCH\_PASSWORD=changeme  
- ELASTICSEARCH\_URL=http://elasticsearch-x:9298  
ports:  
- 5602:5601  
networks:  
- elasticsearch-network  
depends\_on:  
- elasticsearch  
networks:  
elasticsearch-network:  
driver: bridge

---

<div class="post-metadata">

### Author: ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)
#### Post date: [February 7, 2019, 7:39am UTC](https://discuss.elastic.co/t/working-example-for-kabina-and-elasticsearch/167365/2 "2019-02-07T07:39:30Z")

</div>

here are some links that might be helpful:

[https://www.elastic.co/guide/en/kibana/current/docker.html](https://www.elastic.co/guide/en/kibana/current/docker.html)  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html)

[https://hub.docker.com/\_/kibana](https://hub.docker.com/_/kibana)  
[https://hub.docker.com/\_/elasticsearch](https://hub.docker.com/_/elasticsearch)

> **[elastic/kibana-docker](https://github.com/elastic/kibana-docker)**
>
> Official Kibana Docker image. Contribute to elastic/kibana-docker development by creating an account on GitHub.

  

> **[elastic/elasticsearch-docker](https://github.com/elastic/elasticsearch-docker)**
>
> Official Elasticsearch Docker image. Contribute to elastic/elasticsearch-docker development by creating an account on GitHub.

> **[Elasticsearch Cluster and Kibana using docker-compose](https://medium.com/@maxy_ermayank/elasticsearch-cluster-and-kibana-using-docker-compose-4f9c4d6c5470)**
>
> About Me: Application Architect at Oildex, a Services of Transzap Inc,

---

<div class="post-metadata">

### Author: ![Edmond\_Dante](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@Edmond\_Dante](https://discuss.elastic.co/u/Edmond_Dante)
#### Post date: [February 9, 2019, 4:19pm UTC](https://discuss.elastic.co/t/working-example-for-kabina-and-elasticsearch/167365/3 "2019-02-09T16:19:56Z")

</div>

This the end results when I use the version 6.6.0 . Looks like the elasticsearch is up but the kibana still not able to talks to elasticseach  
kibana-x | {"type":"log","@timestamp":"2019-02-09T16:13:10Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"Unable to revive connection: [http://elasticsearch-x:9202/](http://elasticsearch-x:9202/)"}  
kibana-x | {"type":"log","@timestamp":"2019-02-09T16:13:10Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}  
[http://localhost:9202/](http://localhost:9202/)  
{  
"name" : "eBUaa8-",  
"cluster\_name" : "docker-cluster",  
"cluster\_uuid" : "RmQozyNZTGOvQftbh3VgLg",  
"version" : {  
"number" : "6.6.0",  
"build\_flavor" : "default",  
"build\_type" : "tar",  
"build\_hash" : "a9861f4",  
"build\_date" : "2019-01-24T11:27:09.439740Z",  
"build\_snapshot" : false,  
"lucene\_version" : "7.6.0",  
"minimum\_wire\_compatibility\_version" : "5.6.0",  
"minimum\_index\_compatibility\_version" : "5.0.0"  
},  
"tagline" : "You Know, for Search"  
}

[http://localhost:5602/](http://localhost:5602/)

Kibana server is not ready yet

---

<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: [March 9, 2019, 4:20pm UTC](https://discuss.elastic.co/t/working-example-for-kabina-and-elasticsearch/167365/4 "2019-03-09T16:20:00Z")

</div>

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