# How to create a markdown from a saved search or a metric

**URL:** <https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223>\
**Category:** Kibana\
**Created:** [December 26, 2017, 2:49pm UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223 "2017-12-26T14:49:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidv](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@davidv](https://discuss.elastic.co/u/davidv)\
**Post date:** [December 26, 2017, 2:49pm UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223/1 "2017-12-26T14:49:16Z")

</div>

Hello,

How can I visualize a specific field (in this example the text field)  
My data:  
{  
"\_index": "in\_memory\_db\_size",  
"\_type": "doc",  
"\_id": "ZozakmAB9EBpl5JA3w3b",  
"\_version": 1,  
"\_score": 1,  
"\_source": {  
"node": "aio1",  
"text": "21571",  
"collection\_id": "1000",  
"rc": "0"  
}  
}

Currently I create a search and then visualize it, but I'd rather have some kind of label or a markdown, no scrollbars needed, only one column and row.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/c/dc7b49f90102dc239ee1813407e788f40b270ded.png)

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [December 26, 2017, 4:02pm UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223/2 "2017-12-26T16:02:30Z")

</div>

hi @davidv,

You're able to do this if you have a field that can serve as a unique identifier for that document. Then, you can do a Filters-aggregation and filter on that identifier.

For example, see below: Suppose `clientip` uniquely identifies my document, I can create a metric visualization that displays the `bytes`-value for that document.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4b110df12d934e015bccbdeef5be0a66f37243da.png)

---

<div class="post-metadata">

**Author:** ![davidv](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@davidv](https://discuss.elastic.co/u/davidv)\
**Post date:** [December 27, 2017, 7:51am UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223/3 "2017-12-27T07:51:04Z")

</div>

Hi @thomasneirynck,

I had to change the field to integer and then it worked out.

Thank You.

---

<div class="post-metadata">

**Author:** ![davidv](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@davidv](https://discuss.elastic.co/u/davidv)\
**Post date:** [December 31, 2017, 8:12am UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223/4 "2017-12-31T08:12:54Z")

</div>

Hi @thomasneirynck,

For other uses, Is it possible to create markdown visualization from a saved search or other query?  
A markdown that will auto updated rather than hard coded.

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [January 2, 2018, 2:34pm UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223/5 "2018-01-02T14:34:36Z")

</div>

hi @davidv,

The Time Series Visual Builder Visualization allows you to put in a single-valued variable inside a Markdown.

[https://www.elastic.co/guide/en/kibana/current/\_featured\_visualizations.html#\_markdown](https://www.elastic.co/guide/en/kibana/current/_featured_visualizations.html#_markdown)

Maybe that could help?

---

<div class="post-metadata">

**Author:** ![davidv](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@davidv](https://discuss.elastic.co/u/davidv)\
**Post date:** [January 2, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223/6 "2018-01-02T15:07:21Z")

</div>

Thanks again @thomasneirynck.

---

<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 30, 2018, 3:07pm UTC](https://discuss.elastic.co/t/how-to-create-a-markdown-from-a-saved-search-or-a-metric/113223/7 "2018-01-30T15:07:32Z")

</div>

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