# Cant access field when creating runtime field

**URL:** <https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759>\
**Category:** Kibana\
**Tags:** runtime-fields\
**Created:** [December 21, 2022, 12:23pm UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759 "2022-12-21T12:23:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro123](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pedro123](https://discuss.elastic.co/u/pedro123)\
**Post date:** [December 21, 2022, 12:23pm UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/1 "2022-12-21T12:23:49Z")

</div>

Hello,  
I am new to the elastic stack and I am currently creating a runtime field based on rum data.  
More specifically I want to do calculations based on the field [transaction.duration.us](http://transaction.duration.us).  
However when I am creating a new field in "Stack Management - Data Views" I can not access this field.

How can I access this field from my runtime field?  
any help is appriciated 🙂

![image](https://us1.discourse-cdn.com/elastic/original/3X/7/2/7223e7126847c3f7e8395b81c93af8bc193b16ed.png)

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [December 21, 2022, 12:53pm UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/2 "2022-12-21T12:53:03Z")

</div>

Hey! Welcome to our community!  
Have you tried?

```auto
emit(doc[' transaction.duration.us'].value);

```

---

<div class="post-metadata">

**Author:** ![pedro123](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pedro123](https://discuss.elastic.co/u/pedro123)\
**Post date:** [December 21, 2022, 12:59pm UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/3 "2022-12-21T12:59:55Z")

</div>

Yes that was what I tried.  
I only get the following fields related to transactions

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/9/090eb7971f5ba76fab4e6b944a40e0c8868dda9a.png)

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [December 21, 2022, 1:02pm UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/4 "2022-12-21T13:02:02Z")

</div>

Can you see this field on the dataview management page? If you search it I mean. Or in Discover.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/f/dfee8258dea3103afd6fc5a96b013c65425c051d.png)

---

<div class="post-metadata">

**Author:** ![pedro123](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pedro123](https://discuss.elastic.co/u/pedro123)\
**Post date:** [December 21, 2022, 1:03pm UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/5 "2022-12-21T13:03:32Z")

</div>

yes

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2c508032ac1d1a1d0cd81bda1e35f56248d8d582.png)

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [December 21, 2022, 1:06pm UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/6 "2022-12-21T13:06:33Z")

</div>

Can you share with me the mapping of your index? I will try to reproduce it. Also in which kibana version do you operate?

---

<div class="post-metadata">

**Author:** ![pedro123](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pedro123](https://discuss.elastic.co/u/pedro123)\
**Post date:** [December 30, 2022, 9:58am UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/7 "2022-12-30T09:58:32Z")

</div>

I figured it out, thank you 🙂

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 30, 2022, 10:02am UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/8 "2022-12-30T10:02:22Z")

</div>

It'd be good to share the solution if you would, it might help someone in future 🙂

---

<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:** [January 27, 2023, 10:02am UTC](https://discuss.elastic.co/t/cant-access-field-when-creating-runtime-field/321759/9 "2023-01-27T10:02:59Z")

</div>

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