# The metricbeat service terminated unexpectedly

**URL:** <https://discuss.elastic.co/t/the-metricbeat-service-terminated-unexpectedly/193849>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 5, 2019, 5:16pm UTC](https://discuss.elastic.co/t/the-metricbeat-service-terminated-unexpectedly/193849 "2019-08-05T17:16:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnbchron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnbchron/32/47888_2.png) [@johnbchron](https://discuss.elastic.co/u/johnbchron)\
**Post date:** [August 5, 2019, 5:16pm UTC](https://discuss.elastic.co/t/the-metricbeat-service-terminated-unexpectedly/193849/1 "2019-08-05T17:16:48Z")

</div>

Hello All,

So I've been running the full stack (metricbeat, logstash, elasticsearch, kibana) on 7.2, all on Linux except that most of the metricbeat clients are on windows machines. I have beat-logstash connections encrypted with tls, and most of the time it works fine except that metricbeat every couple of days just terminates. I have no idea why. For example I'm running metricbeat on a windows 10 machine, and the logs locally have nothing to say. The last few lines:

```
|2019-08-02T19:04:36.642-0500|INFO|[monitoring]|log/log.go:145|Non-zero metrics in the last 30s|{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":251843,"time":{"ms":47}},"total":{"ticks":708046,"time":{"ms":204},"value":708046},"user":{"ticks":456203,"time":{"ms":157}}},"handles":{"open":325},"info":{"ephemeral_id":"3c30c004-b106-4923-885e-5b74f52c9df6","uptime":{"ms":202710851}},"memstats":{"gc_next":10458160,"memory_alloc":7656952,"memory_total":87723342944,"rss":8192},"runtime":{"goroutines":39}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":54,"batches":6,"total":54},"read":{"bytes":210},"write":{"bytes":18215}},"pipeline":{"clients":3,"events":{"active":0,"published":54,"total":54},"queue":{"acked":54}}},"metricbeat":{"system":{"cpu":{"events":3,"success":3},"filesystem":{"events":2,"success":2},"fsstat":{"events":1,"success":1},"memory":{"events":3,"success":3},"network":{"events":9,"success":9},"process":{"events":30,"success":30},"process_summary":{"events":3,"success":3},"socket_summary":{"events":3,"success":3}}}}}}|
|---|---|---|---|---|---|
|2019-08-02T19:05:06.647-0500|INFO|[monitoring]|log/log.go:145|Non-zero metrics in the last 30s|{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":251875,"time":{"ms":32}},"total":{"ticks":708109,"time":{"ms":63},"value":708109},"user":{"ticks":456234,"time":{"ms":31}}},"handles":{"open":325},"info":{"ephemeral_id":"3c30c004-b106-4923-885e-5b74f52c9df6","uptime":{"ms":202740854}},"memstats":{"gc_next":10493824,"memory_alloc":7585720,"memory_total":87735873120},"runtime":{"goroutines":39}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":47,"batches":6,"total":47},"read":{"bytes":210},"write":{"bytes":17004}},"pipeline":{"clients":3,"events":{"active":0,"published":47,"total":47},"queue":{"acked":47}}},"metricbeat":{"system":{"cpu":{"events":3,"success":3},"memory":{"events":3,"success":3},"network":{"events":9,"success":9},"process":{"events":26,"success":26},"process_summary":{"events":3,"success":3},"socket_summary":{"events":3,"success":3}}}}}}|
|2019-08-02T19:05:36.645-0500|INFO|[monitoring]|log/log.go:145|Non-zero metrics in the last 30s|{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":251953,"time":{"ms":78}},"total":{"ticks":708218,"time":{"ms":109},"value":708218},"user":{"ticks":456265,"time":{"ms":31}}},"handles":{"open":325},"info":{"ephemeral_id":"3c30c004-b106-4923-885e-5b74f52c9df6","uptime":{"ms":202770851}},"memstats":{"gc_next":10496816,"memory_alloc":7687672,"memory_total":87749289856,"rss":-184320},"runtime":{"goroutines":39}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":53,"batches":6,"total":53},"read":{"bytes":210},"write":{"bytes":18448}},"pipeline":{"clients":3,"events":{"active":0,"published":53,"total":53},"queue":{"acked":53}}},"metricbeat":{"system":{"cpu":{"events":3,"success":3},"filesystem":{"events":2,"success":2},"fsstat":{"events":1,"success":1},"memory":{"events":3,"success":3},"network":{"events":9,"success":9},"process":{"events":29,"success":29},"process_summary":{"events":3,"success":3},"socket_summary":{"events":3,"success":3}}}}}}|

```

Ignore the "|", I don't know what's going on with those

I looked at the windows event logs and it showed just three seconds after that last log: ![event%20error](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9d86856f844fe63cb3da91c2f5abeeddb73d99b8.png)

I can't find anything else that would provide any useful info. I can't find any way to reproduce this, but I will turn on debug level logging for when it does happen again.

Thanks in advance for any help given.

---

<div class="post-metadata">

**Author:** ![johnbchron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnbchron/32/47888_2.png) [@johnbchron](https://discuss.elastic.co/u/johnbchron)\
**Post date:** [August 5, 2019, 6:47pm UTC](https://discuss.elastic.co/t/the-metricbeat-service-terminated-unexpectedly/193849/2 "2019-08-05T18:47:33Z")

</div>

Nevermind. Fixed in 7.2.1

(pulled from [Beats version 7.2.1 | Beats Platform Reference [7.2] | Elastic](https://www.elastic.co/guide/en/beats/libbeat/7.2/release-notes-7.2.1.html))

> ### Bugfixes
> 
> **Affecting all Beats**
> 
> - Fix Central Management enroll under Windows [12797](https://github.com/elastic/beats/issues/12797) [12799](https://github.com/elastic/beats/pull/12799)
> - **Fixed a crash under Windows when fetching processes information. [12833](https://github.com/elastic/beats/pull/12833)**
> - Fix seccomp policy preventing some features to function properly on 32bit Linux systems. [12990](https://github.com/elastic/beats/issues/12990) [13008](https://github.com/elastic/beats/pull/13008)

---

<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:** [September 2, 2019, 6:47pm UTC](https://discuss.elastic.co/t/the-metricbeat-service-terminated-unexpectedly/193849/3 "2019-09-02T18:47:37Z")

</div>

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