# How can I group similar message in visualization

**URL:** https://discuss.elastic.co/t/how-can-i-group-similar-message-in-visualization/240668
**Category:** Kibana
**Created:** [July 10, 2020, 9:52am UTC](https://discuss.elastic.co/t/how-can-i-group-similar-message-in-visualization/240668 "2020-07-10T09:52:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Fedir\_Yatseta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fedir_yatseta/32/54315_2.png) [@Fedir\_Yatseta](https://discuss.elastic.co/u/Fedir_Yatseta)
#### Post date: [July 10, 2020, 9:52am UTC](https://discuss.elastic.co/t/how-can-i-group-similar-message-in-visualization/240668/1 "2020-07-10T09:52:58Z")

</div>

I can not understand how to group similar message in visualisation, i have field "message" in

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b9efaef3539b5e0364d5c1c8c6691e9d2bd9a183.png)  
and why in field don't have message ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/8/0824a202c883d0f1b077882a8354584dfcef7452.png). I want to do group message, I get message with time, it time different, me need divide time with text and show message in bar graph visualization ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75b17cc6f291d0524fef04f73248f8615fe7269c.png)  
I think that it field can not aggregatable because it not selected ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/6/668b6f1560eed13701e73dabe60bf643e3d53a22.png)  
How can i changed it?

---

<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: [July 13, 2020, 3:44pm UTC](https://discuss.elastic.co/t/how-can-i-group-similar-message-in-visualization/240668/2 "2020-07-13T15:44:00Z")

</div>

hi @Fedir_Yatseta,

you are right about the reason. Because the field is not aggregatable , you cannot run a group-by on it. The fix is to index this field not as an analyzed field (likely a `text` field in your mappung, but as a `keyword` field ([https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html)).

So to fix, you would need to re-index the data, but also index your message field as a `keyword` field. You can see some examples of this n the Kibana "Sample data"([https://www.elastic.co/guide/en/kibana/current/tutorial-sample-data.html](https://www.elastic.co/guide/en/kibana/current/tutorial-sample-data.html)).

---

<div class="post-metadata">

### Author: ![Fedir\_Yatseta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fedir_yatseta/32/54315_2.png) [@Fedir\_Yatseta](https://discuss.elastic.co/u/Fedir_Yatseta)
#### Post date: [July 29, 2020, 8:54am UTC](https://discuss.elastic.co/t/how-can-i-group-similar-message-in-visualization/240668/3 "2020-07-29T08:54:02Z")

</div>

Hi @thomasneirynck thanks for your help.  
I finded the next exit from this problem.  
In setting filebeat i changed config file "config.yaml" made logs in logstash and parsive in parts

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/5/05c5c653844909c5bcfe27fde401286e21045279.png)  
and now i had the next vizualization ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/a/aa7db1533bdc0ec7f048a38cf66a531c5bf3ded7.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23eed87d5f47474c2f61ca113383cf8cfa3c1b0d.png)

---

<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: [August 26, 2020, 8:54am UTC](https://discuss.elastic.co/t/how-can-i-group-similar-message-in-visualization/240668/4 "2020-08-26T08:54:07Z")

</div>

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