# Packetbeat installation fails on Windows

**URL:** <https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [August 26, 2019, 6:24pm UTC](https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820 "2019-08-26T18:24:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebeaoliveira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thebeaoliveira/32/53314_2.png) [@thebeaoliveira](https://discuss.elastic.co/u/thebeaoliveira)\
**Post date:** [August 26, 2019, 6:24pm UTC](https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820/1 "2019-08-26T18:24:49Z")

</div>

I am trying to install Packetbeat on a Windows server, but I am getting the following error:

Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to [http://localhost:5601/api/status](http://localhost:5601/api/status) fails: fail to execute the HTTP GET request: Get [http://localhost:5601/api/status:](http://localhost:5601/api/status:) dial tcp 127.0.0.1:5601: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.. Response: .

My configuration (packetbeat.yml) file has this information:

`DASHBOARD`  
`setup.dashboards.enabled: true`

`KIBANA`  
`setup.kibana: ["172.21.69.92:5601"]`  
`host: ["172.21.69.92:5601"]`

`ELASTICSEARCH`  
`output.elasticsearch:`  
`hosts: ["172.21.69.92:9200"]`

My elasticsearch and Kibana are on the same host.

From the machine where I want to install packetbeat I can get to the host where Elasticsearch and Kibana are installed. I can ping and telnet.

`Kibana and Elasticsearch version: 7.3.0`  
`Packetbeat version: 7.3.1`

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [August 27, 2019, 5:57pm UTC](https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820/4 "2019-08-27T17:57:07Z")

</div>

Hi @thebeaoliveira,

Packetbeat is still trying to connect to `127.0.0.1:5601`, so it seems that it is not using the settings in the configuration file.

Looking at the file you pasted, it seems incorrectly formatted, could you paste the exact configuration you are using as preformatted text? (using the `</>` button in the toolbar)

---

<div class="post-metadata">

**Author:** ![thebeaoliveira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thebeaoliveira/32/53314_2.png) [@thebeaoliveira](https://discuss.elastic.co/u/thebeaoliveira)\
**Post date:** [August 28, 2019, 8:30pm UTC](https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820/5 "2019-08-28T20:30:48Z")

</div>

Hi @jsoriano, it is like this

```
#============================== Kibana =====================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
# setup.kibana: ["172.21.69.92:5601"]

# Kibana Host
# Scheme and port can be left out and will be set to the default (http and 5601)
# In case you specify and additional path, the scheme is required: http://localhost:5601/path
# IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
host: ["172.21.69.92:5601"]

#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["172.21.69.92:9200"]
```

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [August 29, 2019, 7:48pm UTC](https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820/7 "2019-08-29T19:48:38Z")

</div>

I think that some indentation is missing there, the configuration should be like this (removing comments for clarity):

```auto
setup.kibana:
    host: ["172.21.69.92:5601"]

output.elasticsearch:
    hosts: ["172.21.69.92:9200"]

```

---

<div class="post-metadata">

**Author:** ![thebeaoliveira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thebeaoliveira/32/53314_2.png) [@thebeaoliveira](https://discuss.elastic.co/u/thebeaoliveira)\
**Post date:** [September 5, 2019, 4:58pm UTC](https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820/8 "2019-09-05T16:58:26Z")

</div>

That was it!

Thanks for the help! 🙂

---

<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:** [October 3, 2019, 6:58pm UTC](https://discuss.elastic.co/t/packetbeat-installation-fails-on-windows/196820/9 "2019-10-03T18:58:30Z")

</div>

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