# Show text from index

**URL:** https://discuss.elastic.co/t/show-text-from-index/294713
**Category:** Kibana
**Created:** [January 18, 2022, 4:17pm UTC](https://discuss.elastic.co/t/show-text-from-index/294713 "2022-01-18T16:17:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![czxch](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@czxch](https://discuss.elastic.co/u/czxch)
#### Post date: [January 18, 2022, 4:17pm UTC](https://discuss.elastic.co/t/show-text-from-index/294713/1 "2022-01-18T16:17:19Z")

</div>

Is it possible to show a text field in a visualization like in a Markdown but with the text coming from an index as I want this text to be updated dynamically each time it changes

---

<div class="post-metadata">

### Author: ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)
#### Post date: [January 18, 2022, 5:41pm UTC](https://discuss.elastic.co/t/show-text-from-index/294713/2 "2022-01-18T17:41:34Z")

</div>

You can use the tsvb visualization, and click on markdown and you can go into the data tab, and label the first one `sample` for example. Select terms aggregation of the field you'd like to visualize (It must be of the keyword type though).

Then in the markdown tab type {{#each \_all}}{{#with sample}}{{../label}}{{/with}} {{/each}} and you'll see all the different results outputted! You can then format as you please.

---

<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: [February 15, 2022, 5:41pm UTC](https://discuss.elastic.co/t/show-text-from-index/294713/3 "2022-02-15T17:41:47Z")

</div>

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