# Beat service does not restart after "apt upgrade"

**URL:** https://discuss.elastic.co/t/beat-service-does-not-restart-after-apt-upgrade/305145
**Category:** Beats
**Tags:** filebeat, metricbeat
**Created:** [May 19, 2022, 8:53am UTC](https://discuss.elastic.co/t/beat-service-does-not-restart-after-apt-upgrade/305145 "2022-05-19T08:53:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mh\_xortex](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mh\_xortex](https://discuss.elastic.co/u/mh_xortex)
#### Post date: [May 19, 2022, 8:53am UTC](https://discuss.elastic.co/t/beat-service-does-not-restart-after-apt-upgrade/305145/1 "2022-05-19T08:53:20Z")

</div>

"unattended upgrades " upgrade our beats (filebeat and metricbeat) but the beat services does not restarted.

---

<div class="post-metadata">

### Author: ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)
#### Post date: [May 19, 2022, 1:16pm UTC](https://discuss.elastic.co/t/beat-service-does-not-restart-after-apt-upgrade/305145/2 "2022-05-19T13:16:13Z")

</div>

Hi @mh_xortex Welcome to the community.

please to give us more details.

---

<div class="post-metadata">

### Author: ![mh\_xortex](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mh\_xortex](https://discuss.elastic.co/u/mh_xortex)
#### Post date: [May 23, 2022, 5:15am UTC](https://discuss.elastic.co/t/beat-service-does-not-restart-after-apt-upgrade/305145/3 "2022-05-23T05:15:00Z")

</div>

If e.g. the "filebeat" package is updated with **apt upgrade** or automatically with **unattended upgrades** , then the filebeat service is not automatically restarted (manuel with **systemctl restart filebeat** ).

I also noticed that if you remove the package with **apt purge filebeat** , the service continues to run in the main memory and has to be stopped manually with **systemcl stop filebeat**.

This is not normal behavior that you would expect from a package.

---

<div class="post-metadata">

### Author: ![mh\_xortex](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mh\_xortex](https://discuss.elastic.co/u/mh_xortex)
#### Post date: [June 14, 2022, 11:15am UTC](https://discuss.elastic.co/t/beat-service-does-not-restart-after-apt-upgrade/305145/4 "2022-06-14T11:15:24Z")

</div>

Does nobody have this problem? In my opinion this is a bug.

---

<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 12, 2022, 1:15pm UTC](https://discuss.elastic.co/t/beat-service-does-not-restart-after-apt-upgrade/305145/5 "2022-07-12T13:15:38Z")

</div>

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