# Adding field to existing template

**URL:** <https://discuss.elastic.co/t/adding-field-to-existing-template/119737>\
**Category:** Elasticsearch\
**Created:** [February 14, 2018, 7:08am UTC](https://discuss.elastic.co/t/adding-field-to-existing-template/119737 "2018-02-14T07:08:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [February 14, 2018, 7:09am UTC](https://discuss.elastic.co/t/adding-field-to-existing-template/119737/1 "2018-02-14T07:09:00Z")

</div>

Hi,

I've got indeces name logstash-netflow-06, 07 etc (week number) and a template called netflow.

I used this script to add a field and surely the field shows up on the index pattern and when I do something like `GET logstash-netflow-06` is shows the new field as well. But when I do `GET _template/netflow` the new field does not show up.

Did I add a new field in the correct way? I would like the field to show up on the template as well.

```auto
PUT logstash-netflow-test-*/_mapping/netflow 
{
  "properties": {
          "application_id_trans": {
            "type": "text",
            "fields": {
              "keyword": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
     }
}
```

---

<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:** [March 14, 2018, 7:09am UTC](https://discuss.elastic.co/t/adding-field-to-existing-template/119737/2 "2018-03-14T07:09:02Z")

</div>

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