# Upgrading libbeat and generated files

**URL:** <https://discuss.elastic.co/t/upgrading-libbeat-and-generated-files/158953>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [November 30, 2018, 6:51pm UTC](https://discuss.elastic.co/t/upgrading-libbeat-and-generated-files/158953 "2018-11-30T18:51:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![retzkek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/retzkek/32/9732_2.png) [@retzkek](https://discuss.elastic.co/u/retzkek)\
**Post date:** [November 30, 2018, 6:51pm UTC](https://discuss.elastic.co/t/upgrading-libbeat-and-generated-files/158953/1 "2018-11-30T18:51:06Z")

</div>

What's the recommended procedure for upgrading the version of libbeat used by a beat? For point releases I expect just updating the vendored version will suffice, but what about major versions? Is there any way to update some of the generated files? Notably I see that sometime between 6.3.0 and 6.5.1 the build process has been moved to using mage, so there's some large changes there.

---

<div class="post-metadata">

**Author:** ![retzkek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/retzkek/32/9732_2.png) [@retzkek](https://discuss.elastic.co/u/retzkek)\
**Post date:** [December 14, 2018, 10:28pm UTC](https://discuss.elastic.co/t/upgrading-libbeat-and-generated-files/158953/2 "2018-12-14T22:28:48Z")

</div>

Just a follow-up. I was able to successfully upgrade a beat from libbeat 6.3.0 to 6.5.1, by running generate.py _over_ the existing beat location, then selectively committing the changes and discarding changes to the source and config files. I then ran:

```
rm -rf vendor/github.com/elastic
make copy-vendor
make update

```

I did this primarily because I was having some problems cross-compiling during `make package` but found the new `make release` works great.

---

<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:** [December 28, 2018, 6:51pm UTC](https://discuss.elastic.co/t/upgrading-libbeat-and-generated-files/158953/3 "2018-12-28T18:51:08Z")

</div>

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