# Error with

**URL:** <https://discuss.elastic.co/t/error-with/274054>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [May 26, 2021, 12:05pm UTC](https://discuss.elastic.co/t/error-with/274054 "2021-05-26T12:05:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denden](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@Denden](https://discuss.elastic.co/u/Denden)\
**Post date:** [May 26, 2021, 12:05pm UTC](https://discuss.elastic.co/t/error-with/274054/1 "2021-05-26T12:05:42Z")

</div>

Hello there,

I have a single ELK node, and I have some error that I can't find soutions.

One of them is :

```auto
illegal_argument_exception at shard 0index metricbeat-7.11.2-2021.05.26node 
    ugebynP7RImmkUP5TCeGEA
    Type
    illegal_argument_exception
    Reason
    Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [host.hostname] in order to load field data by uninverting the inverted index. Note that this can use significant memory.

```

Do you have an idea to resolve it ? We don't use any customs things. Only metricbeats with default haproxy module enabled.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 26, 2021, 11:11pm UTC](https://discuss.elastic.co/t/error-with/274054/2 "2021-05-26T23:11:30Z")

</div>

Welcome to our community! 😃

Where are you seeing this error?

---

<div class="post-metadata">

**Author:** ![Denden](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@Denden](https://discuss.elastic.co/u/Denden)\
**Post date:** [May 27, 2021, 8:24am UTC](https://discuss.elastic.co/t/error-with/274054/3 "2021-05-27T08:24:58Z")

</div>

Hello,

Thanks for the welcome.

There error appear directly in kibana when I connect.

Below screenshots :

![Capture d’écran 2021-05-27 à 10.23.47](https://us1.discourse-cdn.com/elastic/original/3X/4/2/42ad3f3b587be391126780981537e09a519b4d7b.png)

 ![Capture d’écran 2021-05-27 à 10.23.55](https://us1.discourse-cdn.com/elastic/original/3X/8/6/86cb33259987c625ae6e4c4d4e83ca071b27b240.png)

Thanks,

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 27, 2021, 10:57pm UTC](https://discuss.elastic.co/t/error-with/274054/4 "2021-05-27T22:57:38Z")

</div>

Can you copy and past the reason as text?

---

<div class="post-metadata">

**Author:** ![Denden](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@Denden](https://discuss.elastic.co/u/Denden)\
**Post date:** [May 28, 2021, 8:12am UTC](https://discuss.elastic.co/t/error-with/274054/5 "2021-05-28T08:12:43Z")

</div>

Hello,

the reason is the one in the first post :

```auto
illegal_argument_exception at shard 0index metricbeat-7.11.2-2021.05.26node 
    ugebynP7RImmkUP5TCeGEA
    Type
    illegal_argument_exception
    Reason
    Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [host.hostname] in order to load field data by uninverting the inverted index. Note that this can use significant memory.

```

---

<div class="post-metadata">

**Author:** ![Denden](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@Denden](https://discuss.elastic.co/u/Denden)\
**Post date:** [June 7, 2021, 9:50am UTC](https://discuss.elastic.co/t/error-with/274054/6 "2021-06-07T09:50:54Z")

</div>

Hello,

Someone have some idea about this error ?

Thanks

---

<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:** [July 5, 2021, 9:51am UTC](https://discuss.elastic.co/t/error-with/274054/7 "2021-07-05T09:51:04Z")

</div>

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