# Can we ref yaml config?

**URL:** <https://discuss.elastic.co/t/can-we-ref-yaml-config/144276>\
**Category:** Kibana\
**Created:** [August 14, 2018, 5:18am UTC](https://discuss.elastic.co/t/can-we-ref-yaml-config/144276 "2018-08-14T05:18:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoami](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@whoami](https://discuss.elastic.co/u/whoami)\
**Post date:** [August 14, 2018, 5:18am UTC](https://discuss.elastic.co/t/can-we-ref-yaml-config/144276/1 "2018-08-14T05:18:40Z")

</div>

a yaml for example:

a:  
b: 1  
c: $b

---

<div class="post-metadata">

**Author:** ![jen-huang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jen-huang/32/74327_2.png) [@jen-huang](https://discuss.elastic.co/u/jen-huang)\
**Post date:** [August 14, 2018, 7:47pm UTC](https://discuss.elastic.co/t/can-we-ref-yaml-config/144276/2 "2018-08-14T19:47:52Z")

</div>

Try something like this:

```auto
b: &valueOfB 1
c: *valueOfB

```

This takes advantage of [yaml aliases](http://yaml.org/spec/1.2/spec.html#id2760556).

---

<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 11, 2018, 7:48pm UTC](https://discuss.elastic.co/t/can-we-ref-yaml-config/144276/3 "2018-09-11T19:48:08Z")

</div>

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