# Metricbeat service don't start (Win2019)

**URL:** <https://discuss.elastic.co/t/metricbeat-service-dont-start-win2019/237972>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [June 21, 2020, 4:35pm UTC](https://discuss.elastic.co/t/metricbeat-service-dont-start-win2019/237972 "2020-06-21T16:35:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DucretJe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ducretje/32/79868_2.png) [@DucretJe](https://discuss.elastic.co/u/DucretJe)\
**Post date:** [June 21, 2020, 4:35pm UTC](https://discuss.elastic.co/t/metricbeat-service-dont-start-win2019/237972/1 "2020-06-21T16:35:39Z")

</div>

Hello,

I'm trying to install metricbeat on a Windows Server 2019.  
I'm using Elastic Metricbeat 7.8.0 **installed with the .msi package**.

I begin with:

```powershell
.\metricbeat.exe setup
Overwritng ILM policy is disabled. Set `setup.ilm.overwrite:true`for enabling.

Index setup finished.
Loading dashboards (Kibana must be running and reachable)
Loaded dashboards

```

When I try to start the service with

```powershell
start-service metricbeat

```

I get the error:

> Service 'Elastic Metricbeat 7.8.0 (metricbeat)' cannot be started due to the following error: Cannot start service metricbeat on computer '.'.

I tried the following diagnostics:

```powershell
.\metricbeat.exe test config
Config OK
.\metricbeat.exe test output
elasticsearch: http://192.168.1.69:9200...
   parse url... OK
   connection...
      parse host... OK
      dns lookup... OK
      addresses: 192.168.1.69
      dial up... OK
   TLS... WAN secure connection disabled
   talk to server... OK
   version: 7.8.0

```

I tried to look for more info in the system logs:

```auto
A timeout was reached (30000 milliseconds) while waiting for the Elastic Metricbeat 7.8.0 service to connect.

```

Here is my metricbeat.yml

> metricbeat.config.modules:  
> path: ${path.config}\module\*\*.yml  
> reload.enabled: false
> 
> setup.template.settings:  
> index.number\_of\_shards: 1  
> index.codec: best\_compression
> 
> setup.kibana:  
> host: "192.168.1.69:5601"
> 
> output.elasticsearch:  
> hosts: ["192.168.1.69:9200"]
> 
> processors:
> 
> - add\_host\_metadata: ~
> - add\_cloud\_metadata: ~
> - add\_docker\_metadata: ~
> - add\_kubernetes\_metadata: ~

What did I missed?

**EDIT:**

The following command:

```powershell
.\metricbeat.exe -e -d "*"

```

does not return any error (I get messages with json output and messages like:

- return ack to broker loop:x
- done send ack
- PublishEvents: x events have been published to elasticsearch in x.xms.

---

<div class="post-metadata">

**Author:** ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)\
**Post date:** [June 30, 2020, 11:31am UTC](https://discuss.elastic.co/t/metricbeat-service-dont-start-win2019/237972/2 "2020-06-30T11:31:42Z")

</div>

hi @DucretJe, can you enable debug logging and let us know if you see anything in the logs when starting metricbeat as a service?  
Also, not sure what modules/metricsets you have enabled, can you limit those to one module/metricset just to rule out any issues there.  
Are you running any antivirus atm? Can you disable it or whitelist the metricbeat service in this case?

---

<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:** [July 28, 2020, 1:31pm UTC](https://discuss.elastic.co/t/metricbeat-service-dont-start-win2019/237972/3 "2020-07-28T13:31:43Z")

</div>

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