# Metricbeat is not loading fields.yml

**URL:** <https://discuss.elastic.co/t/metricbeat-is-not-loading-fields-yml/247390>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [September 3, 2020, 1:20pm UTC](https://discuss.elastic.co/t/metricbeat-is-not-loading-fields-yml/247390 "2020-09-03T13:20:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vamsikrishna\_medeti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vamsikrishna_medeti/32/59108_2.png) [@vamsikrishna\_medeti](https://discuss.elastic.co/u/vamsikrishna_medeti)\
**Post date:** [September 3, 2020, 1:20pm UTC](https://discuss.elastic.co/t/metricbeat-is-not-loading-fields-yml/247390/1 "2020-09-03T13:20:54Z")

</div>

Hi,

I am using metricbeat 7.9.0 daemonset on k8s environment to export the metrics to ELK stack. But I am getting the errors like " Fielddata is disabled on text fields by default. Set fielddata=true on [cloud.account.id] in...."

And

> GET /metricbeat-\*/\_mapping gave me below output:

```auto
        "cloud" : {
          "properties" : {
            "account" : {
              "properties" : {
                "id" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                }
              }
            },

```

All the fields are showing as 'text' fields instead of 'keyword' fields. I expected it to be like below:

```auto
        "cloud" : {
          "properties" : {
            "account" : {
              "properties" : {
                "id" : {
                  "type" : "keyword",
                  "ignore_above" : 1024
                },
                "name" : {
                  "type" : "keyword",
                  "ignore_above" : 1024
                }
              }
            },

```

I checked the fields.yml in the pod which is showing the fields as 'keyword' and 'ignore\_above' as 1024. So looks like the fields.yml is not loaded as the metricbeat-\* template.

I am new to ELK and it took me 2 days to figure out.

Can someone please help me in this regard on how to force the template mapping?

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [September 4, 2020, 8:57am UTC](https://discuss.elastic.co/t/metricbeat-is-not-loading-fields-yml/247390/2 "2020-09-04T08:57:05Z")

</div>

Hi!

You can always enable template loading by adding `setup.template.overwrite: true` in Filebeat's configuration: [https://www.elastic.co/guide/en/beats/filebeat/7.8/filebeat-template.html](https://www.elastic.co/guide/en/beats/filebeat/7.8/filebeat-template.html)

In this, the `fields.yml` will always be loaded on Filebeat's startup.

---

<div class="post-metadata">

**Author:** ![vamsikrishna\_medeti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vamsikrishna_medeti/32/59108_2.png) [@vamsikrishna\_medeti](https://discuss.elastic.co/u/vamsikrishna_medeti)\
**Post date:** [September 4, 2020, 9:25am UTC](https://discuss.elastic.co/t/metricbeat-is-not-loading-fields-yml/247390/3 "2020-09-04T09:25:58Z")

</div>

Thanks @ChrsMark

---

<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:** [October 2, 2020, 9:25am UTC](https://discuss.elastic.co/t/metricbeat-is-not-loading-fields-yml/247390/4 "2020-10-02T09:25:58Z")

</div>

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