# Auto - install plugin after upgrade

**URL:** <https://discuss.elastic.co/t/auto-install-plugin-after-upgrade/182178>\
**Category:** Logstash\
**Created:** [May 22, 2019, 8:57am UTC](https://discuss.elastic.co/t/auto-install-plugin-after-upgrade/182178 "2019-05-22T08:57:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.heuberger](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@thomas.heuberger](https://discuss.elastic.co/u/thomas.heuberger)\
**Post date:** [May 22, 2019, 8:57am UTC](https://discuss.elastic.co/t/auto-install-plugin-after-upgrade/182178/1 "2019-05-22T08:57:42Z")

</div>

I'm using the sflow plugin for logstash, which has to be installed after every single upgrade, or else logstash won't start. Now the problem is that our systems are automatically upgraded. So, either I disable automatic upgrade for logstash, which I don't want, or I find some way to automatically install the missing plugins after every upgrade. Is there an easy way to run the plugin installer automatically after an upgrade? Something like [https://www.cyberciti.biz/faq/debian-ubuntu-linux-hook-a-script-command-to-apt-get-upgrade-command/](https://www.cyberciti.biz/faq/debian-ubuntu-linux-hook-a-script-command-to-apt-get-upgrade-command/) ?

---

<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:** [June 19, 2019, 8:57am UTC](https://discuss.elastic.co/t/auto-install-plugin-after-upgrade/182178/2 "2019-06-19T08:57:46Z")

</div>

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