# Custom dashboard (visualization) using Lens

**URL:** <https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508>\
**Category:** Kibana\
**Tags:** lens\
**Created:** [December 11, 2019, 5:45pm UTC](https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508 "2019-12-11T17:45:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Silveira\_UY](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruno_silveira_uy/32/51588_2.png) [@Bruno\_Silveira\_UY](https://discuss.elastic.co/u/Bruno_Silveira_UY)\
**Post date:** [December 11, 2019, 5:45pm UTC](https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508/1 "2019-12-11T17:45:24Z")

</div>

Hi, i have logs in Json format stored in Elasticsearch and i want to create a custom bar chart using Lens, but i don't know how to access all the data inside the logs, the only values that i can use to make the chart is the _message.keyword_ and the _timestamp.keyword_. how can i use other values like Level of the logfile (Info, trace, debug) or State (Successful, Error, Executing)?.

Thanks in advance.

---

<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:** [December 11, 2019, 6:06pm UTC](https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508/2 "2019-12-11T18:06:44Z")

</div>

Hi, I'm one of the engineers who works on Lens. Based on your description of the log data, I would not expect there to be any issues. So to find issues, can you provide an idea of:

a) What does a sample document look like?  
b) What does your index pattern management screen look like?

This will help me understand whether your data is structured in a way that we expect.

---

<div class="post-metadata">

**Author:** ![Bruno\_Silveira\_UY](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruno_silveira_uy/32/51588_2.png) [@Bruno\_Silveira\_UY](https://discuss.elastic.co/u/Bruno_Silveira_UY)\
**Post date:** [December 12, 2019, 12:53pm UTC](https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508/3 "2019-12-12T12:53:03Z")

</div>

Hi,

> [@wylie](#):
>
> a) What does a sample document look like?

it looks like this:

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/6/2/6288e1639afd7936b0d08159496d2d3aff5d3509.png)

> [@wylie](#):
>
> What does your index pattern management screen look like?

and this:

 ![Sin%20t%C3%ADtulo2](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7cac79ff07b85f437fd9f3d4b1f47303db5a8c34.png)  
I have to use the Mapping API for use all the key-values pairs of the log?

---

<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:** [December 12, 2019, 2:58pm UTC](https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508/4 "2019-12-12T14:58:15Z")

</div>

Okay, it looks like your index pattern object in Kibana is outdated. Please try the refresh button in the top right of the screen, which will load the new mappings.

---

<div class="post-metadata">

**Author:** ![Bruno\_Silveira\_UY](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bruno_silveira_uy/32/51588_2.png) [@Bruno\_Silveira\_UY](https://discuss.elastic.co/u/Bruno_Silveira_UY)\
**Post date:** [December 12, 2019, 3:17pm UTC](https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508/5 "2019-12-12T15:17:55Z")

</div>

Thank you very much!!

---

<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 9, 2020, 3:17pm UTC](https://discuss.elastic.co/t/custom-dashboard-visualization-using-lens/211508/6 "2020-01-09T15:17:57Z")

</div>

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