# Anyone, Help me about vizualization with my log pattern!

**URL:** https://discuss.elastic.co/t/anyone-help-me-about-vizualization-with-my-log-pattern/255871
**Category:** Kibana
**Created:** [November 18, 2020, 4:07pm UTC](https://discuss.elastic.co/t/anyone-help-me-about-vizualization-with-my-log-pattern/255871 "2020-11-18T16:07:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![quangdv.6466](https://avatars.discourse-cdn.com/v4/letter/q/5daacb/32.png) [@quangdv.6466](https://discuss.elastic.co/u/quangdv.6466)
#### Post date: [November 18, 2020, 4:07pm UTC](https://discuss.elastic.co/t/anyone-help-me-about-vizualization-with-my-log-pattern/255871/1 "2020-11-18T16:07:50Z")

</div>

Hi there!  
Here is my complete configuration of the elk stack for my stub.

- Log example:  

- Filebeat configuration:  

- Logstash configuration:  

- Fields auto define on kibana:  

- And here is result on my Kibana:  

- errorCode: 18003

- errorCode: 198877

- errorCode: 19035

and more...

My question is:

How can I count each errorCode and fill result to a vertical graph vizualize with the corresponding errorCode being the bucket?

So, anyone could you help me solution with whole my everything above i provided? And i would like to implement it into my Kibana. Thank you so much!

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [November 19, 2020, 9:39am UTC](https://discuss.elastic.co/t/anyone-help-me-about-vizualization-with-my-log-pattern/255871/2 "2020-11-19T09:39:54Z")

</div>

Hi @quangdv.6466  
You didn't mention what version of kibana you're in, but assuming you're on 7.9.3 or 7.10 you could use lens to achieve what you need.

I'll try to walk you through similar example:

1. Go to Visualize -\> Lens.

2. Inside the app, on the left side, choose the index pattern you want to work.

3. From the left side, move the field 'errorCode' to the right horizontal axis (x-axis).

4. Click on the freshly created 'Top values of errorCode' and change the number of values in the flyout that will open (depending on how many different errorCodes you expect):  

5. Move the field 'Records' to Vertical axis (Y axis)

6. Remember about changing the timepicker range if no data is shown.  

I hope it's helpful!

---

<div class="post-metadata">

### Author: ![quangdv.6466](https://avatars.discourse-cdn.com/v4/letter/q/5daacb/32.png) [@quangdv.6466](https://discuss.elastic.co/u/quangdv.6466)
#### Post date: [November 19, 2020, 10:29am UTC](https://discuss.elastic.co/t/anyone-help-me-about-vizualization-with-my-log-pattern/255871/3 "2020-11-19T10:29:21Z")

</div>

The first one, Thanks Marta, i'm using Kibana 7.9.3. And, i know what you mean.  
But the issue is that the errorCode is inside the message field. I don't know how I can get the errorCode from inside the message field out for statistics and fill whole result into vertical chart in lens.  
Hope you can support me about this issue. Many thanks!

---

<div class="post-metadata">

### Author: ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)
#### Post date: [November 19, 2020, 10:40am UTC](https://discuss.elastic.co/t/anyone-help-me-about-vizualization-with-my-log-pattern/255871/4 "2020-11-19T10:40:56Z")

</div>

Oh ok, I see the problem now. The only option I see is to ingest your data differently so you have a separate field `errorCode` that you can then visualise.  
Maybe someone else can give a better answer, but I don't think it's possible this way.

---

<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: [December 17, 2020, 10:40am UTC](https://discuss.elastic.co/t/anyone-help-me-about-vizualization-with-my-log-pattern/255871/5 "2020-12-17T10:40:58Z")

</div>

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