# Runtime in Kibana Visualization Only (without using Index Pattern/Index Runtime Field)

**URL:** <https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979>\
**Category:** Kibana\
**Tags:** runtime-fields\
**Created:** [June 24, 2021, 8:23pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979 "2021-06-24T20:23:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [June 24, 2021, 8:23pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/1 "2021-06-24T20:23:27Z")

</div>

Hi All,

I was wondering if there is a way to add a runtime field that is only available in a single Kibana visualization. Looking at the runtime field docs it seems possible to add the field at query execution time.

The reason for this is I want to be able to have a somewhat expensive runtime field, but don't want it to be part of an Index Pattern that others will be able to use/see, just part of the singular visualization.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [June 24, 2021, 9:01pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/2 "2021-06-24T21:01:18Z")

</div>

That's not currently possible, but there might be some alternatives for you. You can always use Vega, as allows the full ES search API to be used. You could use a `script` value for some aggregations in the Aggregation-based visualizations, which is available under the Advanced JSON input.

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [June 24, 2021, 10:18pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/3 "2021-06-24T22:18:06Z")

</div>

@wylie thanks for the information I'll take a look at Vega. Would you happen to know if this is planned at all (I wasn't able to find a Kibana issue on it, but I could've just been bad at searching)? Would allow for some much more interesting visualizations without having to go deep into Vega.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [June 24, 2021, 10:52pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/4 "2021-06-24T22:52:09Z")

</div>

I think you're right that there isn't any issue tracking this feature idea, since you're right that the Elasticsearch APIs do support this. I will ask internally to see if I've missed something.

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [June 29, 2021, 8:25pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/5 "2021-06-29T20:25:46Z")

</div>

@wylie I wanted to follow-up on this to see if there are any plans for this functionality or if a GitHub feature request should be opened?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [June 29, 2021, 9:50pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/6 "2021-06-29T21:50:30Z")

</div>

@BenB196 You can now track the Github issue here: [Local Runtime Fields - Authoring Runtime Fields without Index Patterns · Issue #103776 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/103776), and we use feedback like this to focus our priorities.

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [June 29, 2021, 10:29pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/7 "2021-06-29T22:29:04Z")

</div>

Thanks

---

<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:** [July 27, 2021, 10:29pm UTC](https://discuss.elastic.co/t/runtime-in-kibana-visualization-only-without-using-index-pattern-index-runtime-field/276979/8 "2021-07-27T22:29:36Z")

</div>

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