# Filebeat cannt connect to kibana

**URL:** <https://discuss.elastic.co/t/filebeat-cannt-connect-to-kibana/309433>\
**Category:** Kibana\
**Created:** [July 12, 2022, 2:47pm UTC](https://discuss.elastic.co/t/filebeat-cannt-connect-to-kibana/309433 "2022-07-12T14:47:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matin44](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@matin44](https://discuss.elastic.co/u/matin44)\
**Post date:** [July 12, 2022, 2:47pm UTC](https://discuss.elastic.co/t/filebeat-cannt-connect-to-kibana/309433/1 "2022-07-12T14:47:41Z")

</div>

i try to setup filebeat on redhat  
when i run the command "filebeat setup -e" i get error message "Exiting: error connecting to Kibana: fail to get the Kibana version ....."  
i changed the kibana host name at filebeat.yml but it's still try to connect to [http://localhost:5601](http://localhost:5601)  
the line form filebeat.yml look like this  
setup.kibana:  
host: "[http://190.160.10.10:5601](http://190.160.10.10:5601)"

this host accessible from outside .

Please anyone to help me and thanks in advance

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 12, 2022, 10:02pm UTC](https://discuss.elastic.co/t/filebeat-cannt-connect-to-kibana/309433/2 "2022-07-12T22:02:27Z")

</div>

Hi @matin44 Welcome to the communty.

Please post your entire `filebeat.yml` AND correctly format it by selecting the text and pressing the `</>` button..

From your unformatted text above we can not tell if it is properly formatted and it is kind of acting like it is not since it is ignoring the `host` field (not properly indented)

> [@matin44](#):
>
> setup.kibana:  
> host: "[http://190.160.10.10:5601](http://190.160.10.10:5601)"

it should be indented...

```auto
setup.kibana:
  host: "http://190.160.10.10:5601"

```

---

<div class="post-metadata">

**Author:** ![matin44](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@matin44](https://discuss.elastic.co/u/matin44)\
**Post date:** [July 13, 2022, 7:29am UTC](https://discuss.elastic.co/t/filebeat-cannt-connect-to-kibana/309433/3 "2022-07-13T07:29:39Z")

</div>

hi @stephenb

Wow, you're right 🙂  
i did not notice about the indentation of the lines  
now it is properly formatted and WORK !!

Thank you

---

<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:** [August 10, 2022, 7:30am UTC](https://discuss.elastic.co/t/filebeat-cannt-connect-to-kibana/309433/4 "2022-08-10T07:30:22Z")

</div>

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