# Runtime field kibana

**URL:** <https://discuss.elastic.co/t/runtime-field-kibana/324362>\
**Category:** Elasticsearch\
**Tags:** runtime-fields\
**Created:** [January 31, 2023, 6:29pm UTC](https://discuss.elastic.co/t/runtime-field-kibana/324362 "2023-01-31T18:29:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LorensiusOksigii](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lorensiusoksigii/32/111670_2.png) [@LorensiusOksigii](https://discuss.elastic.co/u/LorensiusOksigii)\
**Post date:** [January 31, 2023, 6:29pm UTC](https://discuss.elastic.co/t/runtime-field-kibana/324362/1 "2023-01-31T18:29:24Z")

</div>

hi,

i want make three new field that capture alert, source address and destination address from message field. anyone can help me how to do it. i have try using runtime field, but i cannot extract the value from the message using `emit(doc['message'].value)` and getting `match_only_text fields do not support sorting and aggregations` error.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/8/988089ded56f94be0631852b07862213f0a54db2.png)

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [February 1, 2023, 9:45am UTC](https://discuss.elastic.co/t/runtime-field-kibana/324362/2 "2023-02-01T09:45:55Z")

</div>

Does the `message.keyword` field exist on your dataset? You can try using that to fix the error.

---

<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:** [March 1, 2023, 9:46am UTC](https://discuss.elastic.co/t/runtime-field-kibana/324362/3 "2023-03-01T09:46:50Z")

</div>

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