# Fielddata is disabled on text fields by default. Alternatively use a keyword field instead

**URL:** https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553
**Category:** Beats
**Tags:** metricbeat
**Created:** [December 12, 2018, 1:49pm UTC](https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553 "2018-12-12T13:49:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Yashwant\_Shettigar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashwant_shettigar/32/47652_2.png) [@Yashwant\_Shettigar](https://discuss.elastic.co/u/Yashwant_Shettigar)
#### Post date: [December 12, 2018, 1:49pm UTC](https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553/1 "2018-12-12T13:49:23Z")

</div>

Does this mean that I need to make changes in some json file ?

Actually, I have installed metricbeat along with its default dashboard. Now, when I load dashboard using one of the default dashboards of metricbeat I get error.

Below are some errors :

1. Fielddata is disabled on text fields by default. Set fielddata=true on [system.process.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.

2. The aggregations key is missing from the response, check your permissions for this request.

3. The request for this panel failed. Fielddata is disabled on text fields by default. Set fielddata=true on [system.network.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.

Please let me know exactly in which file I should be doing these changes.

Thank You

---

<div class="post-metadata">

### Author: ![chandra0651](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra0651/32/30484_2.png) [@chandra0651](https://discuss.elastic.co/u/chandra0651)
#### Post date: [December 12, 2018, 5:08pm UTC](https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553/2 "2018-12-12T17:08:04Z")

</div>

Are you using the metricbeat template or the mappings of the metric beat index got created itself.

If you are using the metricbeat default template you wont face this issue by default all the fields in the metricbeat template are of type keyword.

Please check you index mappings once.

---

<div class="post-metadata">

### Author: ![Yashwant\_Shettigar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashwant_shettigar/32/47652_2.png) [@Yashwant\_Shettigar](https://discuss.elastic.co/u/Yashwant_Shettigar)
#### Post date: [December 12, 2018, 8:21pm UTC](https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553/3 "2018-12-12T20:21:08Z")

</div>

I have just followed the below link :

[https://www.elastic.co/guide/en/beats/metricbeat/current/load-kibana-dashboards.html](https://www.elastic.co/guide/en/beats/metricbeat/current/load-kibana-dashboards.html)

Nothing apart from this !!! Meanwhile, can you please let me know how can I do the changes as required.

---

<div class="post-metadata">

### Author: ![chandra0651](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandra0651/32/30484_2.png) [@chandra0651](https://discuss.elastic.co/u/chandra0651)
#### Post date: [December 12, 2018, 8:38pm UTC](https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553/4 "2018-12-12T20:38:39Z")

</div>

How are you pushing the metricbeat data to elasticsearch .if you are directly pushing the data from metricbeat ,enabe the below config in metricbeat YML

```
#==================== Elasticsearch template setting ==========================

#setup.template.settings:
 # index.number_of_shards: 3
 # index.codec: best_compression
  #_source.enabled: false
#setup.template.name: "metricbeat"
#setup.template.pattern: "metricbeat-*"
```

---

<div class="post-metadata">

### Author: ![Yashwant\_Shettigar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yashwant_shettigar/32/47652_2.png) [@Yashwant\_Shettigar](https://discuss.elastic.co/u/Yashwant_Shettigar)
#### Post date: [December 13, 2018, 9:23am UTC](https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553/5 "2018-12-13T09:23:22Z")

</div>

This is not working. I have added data as requested i.e. without #:

#==================== Elasticsearch template setting ==========================

setup.template.settings:  
index.number\_of\_shards: 3  
index.codec: best\_compression  
\_source.enabled: false  
setup.template.name: "metricbeat"  
setup.template.pattern: "metricbeat-\*"

---

<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 10, 2019, 9:23am UTC](https://discuss.elastic.co/t/fielddata-is-disabled-on-text-fields-by-default-alternatively-use-a-keyword-field-instead/160553/6 "2019-01-10T09:23:28Z")

</div>

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