# Beats - Adding the File Version resource to the Windows exe

**URL:** <https://discuss.elastic.co/t/beats-adding-the-file-version-resource-to-the-windows-exe/60125>\
**Category:** Beats\
**Created:** [September 8, 2016, 10:49pm UTC](https://discuss.elastic.co/t/beats-adding-the-file-version-resource-to-the-windows-exe/60125 "2016-09-08T22:49:17Z")\
**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:** [September 8, 2016, 10:49pm UTC](https://discuss.elastic.co/t/beats-adding-the-file-version-resource-to-the-windows-exe/60125/1 "2016-09-08T22:49:18Z")

</div>

Prior to rolling out on a large scale, we would like to be able to monitor the version of the particular beat installed. The beat exe's do not report any file version or product version. It is logged, but it can be programmatically a PITA to extract that line from the log, especially if the log has rolled before restart.

Could the file version be added to the next build?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [September 9, 2016, 12:03am UTC](https://discuss.elastic.co/t/beats-adding-the-file-version-resource-to-the-windows-exe/60125/2 "2016-09-09T00:03:07Z")

</div>

Have you tried `$ <beatname> -version` ? You using rpm's ?

On can have a cron job writing these to some file every 24 hours for example. Use filebeat to push the versions.log file. For example `<beatname> -version > version-$(date).log`. Do not forget to delete old versions files from time to time.

---

<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:** [September 9, 2016, 1:10am UTC](https://discuss.elastic.co/t/beats-adding-the-file-version-resource-to-the-windows-exe/60125/3 "2016-09-09T01:10:11Z")

</div>

Thanks for your response Steffen.

I was unaware of the -version command. It would make a good last-ditch way of tracking if needed. We are primarily a windows shop, with only about 40 Linux boxes (almost 500 windows). We use BigFix for a great many things, and it is a simple matter to use BigFix to query a file for its version, and display it in a report.

We are okay for the moment; we have just started deployment, and are on the latest version. However, when the first upgrade comes down, we'll need to know which clients to push the update to.

This is why I was hoping that (at least for windows versions), the File Version property could be added to the _next_ release.

Thanks, again.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [September 9, 2016, 12:17pm UTC](https://discuss.elastic.co/t/beats-adding-the-file-version-resource-to-the-windows-exe/60125/4 "2016-09-09T12:17:52Z")

</div>

as we don't have a version file yet, how about updating `<beatname> -version > <path-to-data>/<beatname>/version` to the install script. this way on every update you will have a valid version-file available all the time.

---

<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 29, 2016, 10:49pm UTC](https://discuss.elastic.co/t/beats-adding-the-file-version-resource-to-the-windows-exe/60125/5 "2016-09-29T22:49:25Z")

</div>

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