# Cannot start Metricbeat as Windows Service ( 7.2.0 )

**URL:** <https://discuss.elastic.co/t/cannot-start-metricbeat-as-windows-service-7-2-0/192420>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [July 26, 2019, 11:16am UTC](https://discuss.elastic.co/t/cannot-start-metricbeat-as-windows-service-7-2-0/192420 "2019-07-26T11:16:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nimothy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nimothy/32/51006_2.png) [@Nimothy](https://discuss.elastic.co/u/Nimothy)\
**Post date:** [July 26, 2019, 11:16am UTC](https://discuss.elastic.co/t/cannot-start-metricbeat-as-windows-service-7-2-0/192420/1 "2019-07-26T11:16:56Z")

</div>

Hi All,

I'm trying to start Metricbeat as a windows service but it is refusing to start.  
I'm getting an error 1067: The process terminated unexpectedly  
OS: Windows 2016 DataCenter

Metricbeat Service AppPath  
`"C:\Program Files\Metricbeat\metricbeat.exe" -v -c "C:\Program Files\Metricbeat\metricbeat.yml" --path.home "C:\Program Files\Metricbeat" --path.data "C:\ProgramData\metricbeat" --path.logs "C:\ProgramData\metricbeat\logs"`

metricbeat.yml

```
metricbeat.config.modules:
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: true

  # Period on which files under path should be checked for changes
  reload.period: 10s

setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression

env: production

cloud.id: "MyCloudID"
cloud.auth: "elastic:MySuperSecurePassword"

output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["localhost:9200"]

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

logging.level: debug
```

---

<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 23, 2019, 11:16am UTC](https://discuss.elastic.co/t/cannot-start-metricbeat-as-windows-service-7-2-0/192420/2 "2019-08-23T11:16:57Z")

</div>

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