# Group same errors on .keyword

**URL:** <https://discuss.elastic.co/t/group-same-errors-on-keyword/163337>\
**Category:** Kibana\
**Created:** [January 8, 2019, 10:27am UTC](https://discuss.elastic.co/t/group-same-errors-on-keyword/163337 "2019-01-08T10:27:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pietia](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pietia](https://discuss.elastic.co/u/Pietia)\
**Post date:** [January 8, 2019, 10:27am UTC](https://discuss.elastic.co/t/group-same-errors-on-keyword/163337/1 "2019-01-08T10:27:36Z")

</div>

I'm trying to group same errors on kibana with elk stack  
however when I visualise data by Error not all errors are there I'm visualising data on err\_message.keyword field.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/a/4a5c399f3577e88cd6d4d9b1fb88eeed12d20c20.png)  
What I noticed is that long strings are not there where small strings are there and can be grouped fine.  
Is there some limit on .keyword field type sometimes err\_message have like 400 chars here and can't be visualised.

When I click on add missing and group other values I can see the Other and Missing values in err\_message.keyword  
Can you tell me how can I resolve this issue?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [January 9, 2019, 1:31am UTC](https://discuss.elastic.co/t/group-same-errors-on-keyword/163337/2 "2019-01-09T01:31:22Z")

</div>

What is the [elasticsearch mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html) for the field `err_message.keyword`? If elasticsearch created the field mapping by default then it will probably look something like the below and the keyword field is getting trimmed at `256` characters.

```auto
          "agent" : {
            "type" : "text",
            "fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }
          }

```

---

<div class="post-metadata">

**Author:** ![Pietia](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@Pietia](https://discuss.elastic.co/u/Pietia)\
**Post date:** [January 16, 2019, 2:57pm UTC](https://discuss.elastic.co/t/group-same-errors-on-keyword/163337/3 "2019-01-16T14:57:59Z")

</div>

Hi,  
I wish to get only err\_message.keyword having ignore\_above equal to 200000 ,right now I'm using this is applied to every .keyword

Can anybody help me how to make it with only one err\_message.keyword?

> {  
> "tomcat-template": {  
> "order": 0,  
> "index\_patterns": [  
> "tomcat\*"  
> ],  
> "settings": {},  
> "mappings": {  
> "doc": {  
> "dynamic\_templates": [  
> {  
> "strings": {  
> "match\_mapping\_type": "string",  
> "mapping": {  
> "type": "text",  
> "fields": {  
> "keyword": {  
> "type": "keyword",  
> "ignore\_above": 200000  
> }  
> }  
> }  
> }  
> }  
> ]  
> }  
> },  
> "aliases": {}  
> }  
> }

---

<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 13, 2019, 2:58pm UTC](https://discuss.elastic.co/t/group-same-errors-on-keyword/163337/4 "2019-02-13T14:58:02Z")

</div>

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