# Common error - Root mapping definition has unsupported parameters

**URL:** <https://discuss.elastic.co/t/common-error-root-mapping-definition-has-unsupported-parameters/63300>\
**Category:** Elasticsearch\
**Created:** [October 18, 2016, 1:36pm UTC](https://discuss.elastic.co/t/common-error-root-mapping-definition-has-unsupported-parameters/63300 "2016-10-18T13:36:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antarktika](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@Antarktika](https://discuss.elastic.co/u/Antarktika)\
**Post date:** [October 18, 2016, 1:36pm UTC](https://discuss.elastic.co/t/common-error-root-mapping-definition-has-unsupported-parameters/63300/1 "2016-10-18T13:36:44Z")

</div>

I try to make index for Apache access logs.

curl -XPUT '172.16.1.136:9200/apache\_access' -d '{

> "settings": {  
> "number\_of\_replicas": "1",  
> "number\_of\_shards": "1"  
> },  
> "mappings": {  
> "properties": {  
> "clientip": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "ident": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "auth": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "timestamp": {  
> "type": "date",  
> "format": "date\_time\_no\_millis"  
> },  
> "verb": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "request": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "httpversion": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "rawrequest": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "response": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "bytes": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "referrer": {  
> "type": "string",  
> "index": "not\_analyzed"  
> },  
> "agent": {  
> "type": "string",  
> "index": "not\_analyzed"  
> } } } }'

It looks like correct, but I have following error:  
{"error":{"root\_cause":[{"type":"mapper\_parsing\_exception","reason":"Root mappin g definition has unsupported parameters:... and here ES gives me ALL my parameters as unsupported.

I really need help.

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [October 19, 2016, 5:55am UTC](https://discuss.elastic.co/t/common-error-root-mapping-definition-has-unsupported-parameters/63300/2 "2016-10-19T05:55:29Z")

</div>

You should define `mapping type` after `mappings` before `properties`.

Like `user` or `blogpost` in [this example](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/mapping.html#_example_mapping)

---

<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:** [July 5, 2017, 10:11pm UTC](https://discuss.elastic.co/t/common-error-root-mapping-definition-has-unsupported-parameters/63300/3 "2017-07-05T22:11:26Z")

</div>


