# Filebeat connection to remote kibana

**URL:** https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515
**Category:** Beats
**Tags:** filebeat
**Created:** [March 19, 2018, 9:24am UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515 "2018-03-19T09:24:45Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Prajakta\_Sonawane](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@Prajakta\_Sonawane](https://discuss.elastic.co/u/Prajakta_Sonawane)
#### Post date: [March 19, 2018, 9:24am UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515/1 "2018-03-19T09:24:46Z")

</div>

How do I connect FIlebeat to remote kibana?  
in my filebeat.yml file, I gave the ip address on which kibana is working

* * *

setup.kibana:

# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601

host: "ip\_addr:5602"  
username: "kibana"  
password: "\*\*\*\*\*\*\*"

* * *

The error:  
Exiting: Error importing Kibana dashboards: fail to create the Kibana loader: Error creating Kibana client: fail to get the Kibana version:HTTP GET request to /api/status fails: fail to execute the HTTP GET request: Get http://ip\_addr:5602/api/status: dial tcp ip\_addr:5602: getsockopt: connection refused. Response:

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 21, 2018, 7:01am UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515/2 "2018-03-21T07:01:20Z")

</div>

Which versions of Kibana and Filebeat are you using?

---

<div class="post-metadata">

### Author: ![kanchan\_pingale](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kanchan\_pingale](https://discuss.elastic.co/u/kanchan_pingale)
#### Post date: [March 21, 2018, 7:13am UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515/3 "2018-03-21T07:13:30Z")

</div>

6.2.2

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 21, 2018, 3:23pm UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515/4 "2018-03-21T15:23:00Z")

</div>

You have Filebeat 6.2.2 and Kibana 6.2.2? Can you try to use `curl` to see if Kibana is reachable from the server Filebeat is on?

---

<div class="post-metadata">

### Author: ![bernieb](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@bernieb](https://discuss.elastic.co/u/bernieb)
#### Post date: [March 22, 2018, 6:21pm UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515/5 "2018-03-22T18:21:00Z")

</div>

I run kibana and elasticsearch and filebeat instances on a docker stack. Thy are all at version 6.2.2.  
I am attempting to load the filebeat dashboards in my kibana instance. I try to run the setup separately with this command:  
docker run --net=SWARM\_NET [docker.elastic.co/beats/filebeat:6.2.2](http://docker.elastic.co/beats/filebeat:6.2.2) setup -E "output.elasticsearch.hosts=["[http://elasticsearch:9200](http://elasticsearch:9200)"]" -E "setup.kibana.host:"[http://kibana:5601](http://kibana:5601)"" --dashboards

It does not work. I see in the logs:  
INFO elasticsearch/client.go:145 Elasticsearch url: [http://elasticsearch:9200](http://elasticsearch:9200)  
INFO kibana/client.go:69 Kibana url: [http://localhost:5601](http://localhost:5601)

So elasticsearch's url is properly set but not kibana's.

Is there a way to set kibana's url through the command line?

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [March 26, 2018, 9:13am UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515/6 "2018-03-26T09:13:33Z")

</div>

You use a `:` instead of a `=` in the above command before the kibana host. Changing it should solve your issue.

---

<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 23, 2018, 9:14am UTC](https://discuss.elastic.co/t/filebeat-connection-to-remote-kibana/124515/7 "2018-04-23T09:14:01Z")

</div>

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