# Macro for Beats version?

**URL:** <https://discuss.elastic.co/t/macro-for-beats-version/231822>\
**Category:** Beats\
**Created:** [May 9, 2020, 7:47am UTC](https://discuss.elastic.co/t/macro-for-beats-version/231822 "2020-05-09T07:47:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![willemdh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/willemdh/32/16922_2.png) [@willemdh](https://discuss.elastic.co/u/willemdh)\
**Post date:** [May 9, 2020, 7:47am UTC](https://discuss.elastic.co/t/macro-for-beats-version/231822/1 "2020-05-09T07:47:37Z")

</div>

Hello,

As I'm putting some stuff, such as dashboards in directories containing the version, it would be useful if I could use some sort of macro for this. For this a Beat would need to be aware of it's own version.  
Then my beat.yml configurations would survive updates.

```
setup.dashboards.enabled: true
setup.dashboards.directory: C:\Program Files\Elastic\auditbeat\${beatsversion}\kibana

```

Not sure if this functionality might already exist?

I'm not looking to use env vars.

Grtz

Willem

---

<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 6, 2020, 9:47am UTC](https://discuss.elastic.co/t/macro-for-beats-version/231822/2 "2020-06-06T09:47:39Z")

</div>

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