# How to create an array runtime field

**URL:** <https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791>\
**Category:** Kibana\
**Created:** [January 10, 2023, 6:27am UTC](https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791 "2023-01-10T06:27:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)\
**Post date:** [January 10, 2023, 8:49am UTC](https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791/2 "2023-01-10T08:49:02Z")

</div>

Hi @cr_168328

in order to produce an array of values in runtime fields you can emit multiple times a single value.  
In your case rather than populate an array of value in the loop, just emit the value.

For more details about array values support for the runtime field `emit` there's this nice reference post: [How to a emit a value for a runtime field of type geo\_point? - #5 by rcowart](https://discuss.elastic.co/t/how-to-a-emit-a-value-for-a-runtime-field-of-type-geo-point/271889/5)

---

_[View the full topic](https://discuss.elastic.co/t/how-to-create-an-array-runtime-field/322791)._
