# Json template format logstash 7.6.2

**URL:** <https://discuss.elastic.co/t/json-template-format-logstash-7-6-2/254328>\
**Category:** Logstash\
**Created:** [November 4, 2020, 8:30pm UTC](https://discuss.elastic.co/t/json-template-format-logstash-7-6-2/254328 "2020-11-04T20:30:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [November 4, 2020, 8:30pm UTC](https://discuss.elastic.co/t/json-template-format-logstash-7-6-2/254328/1 "2020-11-04T20:30:28Z")

</div>

Hi All, I am new to applying json templates. I have ELK Stack 7.6.2

My template looks like below:

```auto
{ 
  "mappings": {
    "_doc": {
      "_all": {
        "enabled": true,
        "norms": {
          "enabled": false
        }
      },
      "dynamic_templates": [
        {
            "Exception":{
                "path_match": "exception.values.stacktrace.*",
                "match_mapping_type": "object",
                "mapping":{
                "type": "nested"
                }
            }
        },
        {
          "ls-watcher": {
            "mapping": {
              "doc_values": true,
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "{dynamic_type}"
            },
            "match": "*"
          }
        }
      ],
     "properties": {
        "timestamp":{
          "type": "date",
          "format": "epoch_millis"
        },
        "message": {
          "type": "keyword"
        },
        "request": {
                "type": "object"
        },
        "logger": {
                "type": "keyword"
        },
        "tag": {
                "type": "object"
        },
        "extra": {
                "type": "object"
        },
        "project": {
                "type": "keyword"
        },
        "env": {
                "type": "keyword"
        },
        "user": {
                "type": "keyword"
        },
        "eventId": {
                "type": "keyword"
        },
        "release": {
                "type": "keyword"
        },
        "culprit": {
                "type": "keyword"
        },
        "profiling": {
                "type": "keyword"
        },
        "performance": {
                "type": "double"
        },
        "breadcrumbs": {
                "enabled": false
        }                     
        ,"fingerprint": {
                "type" : "keyword"
        }
      }
    }
  },
  "settings": {
    "index.refresh_interval": "5s"
  },
  "template": "*ls_watcher-*"
}

```

Looks like there is some syntax issue with the json as I see the following:

```auto
curl -u abc:abc123 -X GET "http://1.2.3.4:3045/_template/ls_watcher/_search?q=*:*"
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/_template/ls_watcher/_search] contains unrecognized parameter: [name]"}],"type":"illegal_argument_exception","reason":"request [/_template/ls_watcher/_search] contains unrecognized parameter: [name]"},"status":400}

```

Please help in pointing out the syntax issue with the json. thanks

---

<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:** [December 2, 2020, 8:30pm UTC](https://discuss.elastic.co/t/json-template-format-logstash-7-6-2/254328/2 "2020-12-02T20:30:29Z")

</div>

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