# Adding the File Version resource to the Windows executable for all Beats

**URL:** <https://discuss.elastic.co/t/adding-the-file-version-resource-to-the-windows-executable-for-all-beats/115779>\
**Category:** Beats\
**Created:** [January 16, 2018, 7:57pm UTC](https://discuss.elastic.co/t/adding-the-file-version-resource-to-the-windows-executable-for-all-beats/115779 "2018-01-16T19:57:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimoHar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timohar/32/27257_2.png) [@TimoHar](https://discuss.elastic.co/u/TimoHar)\
**Post date:** [January 16, 2018, 7:57pm UTC](https://discuss.elastic.co/t/adding-the-file-version-resource-to-the-windows-executable-for-all-beats/115779/1 "2018-01-16T19:57:47Z")

</div>

I brought this up 16 months ago with v5.4.1 In order to monitor the versions of beats I have installed on windows servers, I would like the File version added to the Windows binary of all beats. I understand I can run scripts to get it, but this is kinda kludgy and a bit of a hack. I would really prefer to monitor the version of the file.

I am not certain why you **_wouldn't_** add the version to the file...

Can this please be considered for all future releases?

Timothy

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 16, 2018, 8:36pm UTC](https://discuss.elastic.co/t/adding-the-file-version-resource-to-the-windows-executable-for-all-beats/115779/2 "2018-01-16T20:36:51Z")

</div>

The [tools and scripts](https://github.com/elastic/beats/tree/master/dev-tools/packer) used for building the release binaries are 100% open source. Have you considered contributing to the project?

I haven't looked into how to add this information to the exe, but if it's just a simple command it could be executed [here](https://github.com/elastic/beats/blob/c4474a0ad58b35777b9bde201e794b1ab05a25ad/dev-tools/packer/platforms/windows/run.sh.j2#L23) which is after the binary is made, but before it is zipped.

---

<div class="post-metadata">

**Author:** ![TimoHar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timohar/32/27257_2.png) [@TimoHar](https://discuss.elastic.co/u/TimoHar)\
**Post date:** [January 17, 2018, 2:25pm UTC](https://discuss.elastic.co/t/adding-the-file-version-resource-to-the-windows-executable-for-all-beats/115779/3 "2018-01-17T14:25:39Z")

</div>

From what I understand (barely scratching the surface), it has to be done when it is compiled. I have tried adding after the fact with no success. I have no experience with this, but I may take a stab at it at some point in time

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 17, 2018, 3:24pm UTC](https://discuss.elastic.co/t/adding-the-file-version-resource-to-the-windows-executable-for-all-beats/115779/4 "2018-01-17T15:24:53Z")

</div>

This looks like a good place to start: [https://github.com/josephspurrier/goversioninfo](https://github.com/josephspurrier/goversioninfo)

---

<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:** [February 6, 2018, 7:57pm UTC](https://discuss.elastic.co/t/adding-the-file-version-resource-to-the-windows-executable-for-all-beats/115779/5 "2018-02-06T19:57:49Z")

</div>

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