# No fields mapped after creating a mapping template

**URL:** <https://discuss.elastic.co/t/no-fields-mapped-after-creating-a-mapping-template/117766>\
**Category:** Elasticsearch\
**Created:** [January 31, 2018, 8:26am UTC](https://discuss.elastic.co/t/no-fields-mapped-after-creating-a-mapping-template/117766 "2018-01-31T08:26:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [January 31, 2018, 8:26am UTC](https://discuss.elastic.co/t/no-fields-mapped-after-creating-a-mapping-template/117766/1 "2018-01-31T08:26:16Z")

</div>

I created a mapping template below

```
PUT /_template/eside_test1
{
    "index_patterns" : ["eside-*"],
    "order" : 0,
    "version": 1,
    "settings" : {
        "number_of_shards" : "3",
        "index": { "refresh_interval": "5s" },
        "number_of_routing_shards": "18",
        "mapping": {
            "total_fields": {
                "limit": "1000"
          }
        }
    },
    "mapping" : {
        "eside" : {
            "@timestamp": { "type": "date"},
            "Timestamp": { "type": "date"},
            "ServerIP": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
           "Operation Type": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "Source": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "ElapsedTime": {
                "type": "integer",
                "null_value": "NULL"
            },
            "TransactionID": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "Destination": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "Operation Name": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "Host": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "Environment": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "Payload": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "Log message": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "source": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            },
            "host": {
                "type": "text",
                "fields": { "raw": { "type": "keyword"}},
                "null_value": "NULL"
            }
        }
    },
    "aliases": {}
}

```

Then after checking this command

`GET /_template/eside_test1`

It gives me

```
{
  "eside_test1": {
    "order": 0,
    "version": 1,
    "index_patterns": [
      "eside-*"
    ],
    "settings": {
      "index": {
        "mapping": {
          "total_fields": {
            "limit": "1000"
          }
        },
        "refresh_interval": "5s",
        "number_of_routing_shards": "18",
        "number_of_shards": "3"
      }
    },
    "mappings": {},
    "aliases": {}
  }
}

```

No fields were mapped. Can anyone tell me whats wrong with my template?

---

<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:** [February 2, 2018, 1:24am UTC](https://discuss.elastic.co/t/no-fields-mapped-after-creating-a-mapping-template/117766/2 "2018-02-02T01:24:40Z")

</div>

What version are you running?

---

<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 2, 2018, 1:24am UTC](https://discuss.elastic.co/t/no-fields-mapped-after-creating-a-mapping-template/117766/3 "2018-03-02T01:24:42Z")

</div>

Closed on March 2, 2018, 1:24am UTC

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