# Filebeat creates indexes that do not respect the index\_template mapping

**URL:** https://discuss.elastic.co/t/filebeat-creates-indexes-that-do-not-respect-the-index-template-mapping/364375
**Category:** Beats
**Tags:** filebeat
**Created:** [August 5, 2024, 11:29am UTC](https://discuss.elastic.co/t/filebeat-creates-indexes-that-do-not-respect-the-index-template-mapping/364375 "2024-08-05T11:29:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Terkea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/terkea/32/122058_2.png) [@Terkea](https://discuss.elastic.co/u/Terkea)
#### Post date: [August 5, 2024, 11:29am UTC](https://discuss.elastic.co/t/filebeat-creates-indexes-that-do-not-respect-the-index-template-mapping/364375/1 "2024-08-05T11:29:31Z")

</div>

hello guys, I have an issue with filebeat where I have configured an index\_template and its mapping but the indices created in the filebeat do not follow the mapping of the index\_template.

filebeat version is 7.17.22

filebeat.yml

```auto
setup.dashboards.enabled: false
setup.ilm.enabled: true
setup.ilm.pattern: '{now/d}-000001'
setup.ilm.policy_name: 1d_rollover_90d_coldstorage_365d_delete
setup.ilm.rollover_alias: filebeat-logs-ov2-staging-microservices
setup.template.enabled: true
setup.template.name: filebeat-logs-ov2-staging-microservices
setup.template.pattern: filebeat-logs-ov2-staging-microservices-*
setup.template.settings:
  index.lifecycle.name: 1d_rollover_90d_coldstorage_365d_delete
  index.lifecycle.rollover_alias: filebeat-logs-ov2-staging-microservices

```

my index template has the following mapping

```auto
{
  "properties": {
    "geoip": {
      "properties": {
        "location": {
          "type": "geo_point"
        }
      }
    },
    "pm2_env": {
      "properties": {
        "axm_monitor": {
          "properties": {
            "Event Loop Latency": {
              "properties": {
                "value": {
                  "type": "double"
                }
              }
            },
            "Used Heap Size": {
              "properties": {
                "value": {
                  "type": "double"
                }
              }
            },
            "Event Loop Latency p95": {
              "properties": {
                "value": {
                  "type": "double"
                }
              }
            },
            "Heap Size": {
              "properties": {
                "value": {
                  "type": "double"
                }
              }
            }
          }
        }
      }
    },
    "responseSize": {
      "type": "double"
    },
    "processingTime": {
      "type": "double"
    }
  }
}

```

and my indexes created by filebeat look like this

```auto

   "Event Loop Latency": {
                  "properties": {
                    "historic": {
                      "type": "boolean"
                    },
                    "type": {
                      "type": "text",
                      "fields": {
                        "keyword": {
                          "type": "keyword",
                          "ignore_above": 256
                        }
                      }
                    },
                    "unit": {
                      "type": "text",
                      "fields": {
                        "keyword": {
                          "type": "keyword",
                          "ignore_above": 256
                        }
                      }
                    },
                    "value": {
                      "type": "text",
                      "fields": {
                        "keyword": {
                          "type": "keyword",
                          "ignore_above": 256
                        }
                      }
                    }
                  }
                },

```

why isn't the value the type double as per the index template?
