# Logstash Map Paarsing error status 400

**URL:** <https://discuss.elastic.co/t/logstash-map-paarsing-error-status-400/52045>\
**Category:** Logstash\
**Created:** [June 7, 2016, 9:50am UTC](https://discuss.elastic.co/t/logstash-map-paarsing-error-status-400/52045 "2016-06-07T09:50:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 7, 2016, 9:50am UTC](https://discuss.elastic.co/t/logstash-map-paarsing-error-status-400/52045/1 "2016-06-07T09:50:50Z")

</div>

When I am trying to use logstash to read through a configuration file, I come up with map parsing error.

> :response=\>{"index"=\>{"\_index"=\>"logstash-2016.06.07",  
> "\_type"=\>"txt", "\_id"=\>nil, "status"=\>400,  
> "error"=\>{"type"=\>"mapper\_parsing\_exception", "r eason"=\>"Failed to  
> parse mapping [_default_]: Mapping definition for [data] has  
> unsupported parameters: [ignore\_above : 1024]",  
> "caused\_by"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"Mapping  
> definition for [data] has unsupported para meters: [ignore\_above :  
> 1024]"}}}}, :level=\>:warn}←[0m

I found that there is no problem is groking my logs but just do not know what is the matter of the error.

Here is my logstash.conf

```
input{
	stdin{}
	file{
		type => "txt"
		path => "C:\HA\accesslog\trial.log"
		start_position => "beginning"
	}
}
filter{
	grok{
	match => {"message" => ["%{IP:ClientAddr}%{SPACE}%{NOTSPACE:date}%{SPACE}%{TIME:time}%{SPACE}%{NOTSPACE:x-eap.wlsCustomLogField.VirtualHost}%{SPACE}%{WORD:cs-method}%{SPACE}%{PATH:cs-uri-stem}%{SPACE}%{PROG:x-eap.wlsCustomLogField.Protocol}%{SPACE}%{NUMBER:sc-status}%{SPACE}%{NUMBER:bytes}%{SPACE}%{NOTSPACE:x-eap.wlsCustomLogField.RequestedSessionId}%{SPACE}%{PROG:x-eap.wlsCustomLogField.Ecid}%{SPACE}%{NUMBER:x-eap.wlsCustomLogField.ThreadId}%{SPACE}%{NUMBER:x-eap.wlsCustomLogField.EndTs}%{SPACE}%{NUMBER:time-taken}"]}
    	}
	
}
output{
  	elasticsearch { hosts => ["localhost:9200"] 
	}
  	stdout { codec => rubydebug }	
}

```

Please help. Thanks.

---

<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:** [June 8, 2016, 12:39am UTC](https://discuss.elastic.co/t/logstash-map-paarsing-error-status-400/52045/2 "2016-06-08T00:39:59Z")

</div>

> [@Kennedy\_Kan1](#):
>
> Mapping definition for [data] hasunsupported parameters: [ignore\_above : 1024]",

That is why.  
What does your mapping look like?

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 8, 2016, 9:05am UTC](https://discuss.elastic.co/t/logstash-map-paarsing-error-status-400/52045/4 "2016-06-08T09:05:37Z")

</div>

> [@warkolm](#):
>
> That is why.  
> What does your mapping look like?

A sample line of my data is like that:

```
167.57.21.143 2016-05-26 00:00:12 cms-corp-aeis-prd.server.ab.org.au:32028 POST /aeis/7_0_0/aeis/timecapture.do	HTTP/1.1 200 109 JOvopGXLSq4o-tWMV8Oj-6aDSILdcL3jd9bsyUiaI6a3vFO5o7dm!449867976!1464191968906 3eec121a91ac23b8:2be0a5e5:1533d1684e1:-7f72-00000000005fc371 4109 1464192012809 0.238

```

**And when I run the file, it did give out the grok parse result, even have mapping error**

> {  
> "message" =\> "167.57.21.143 2016-05-26 00:00:12 cms-corp-aeis-prd.server.ab.org.au:32028 POST /aeis/7\_0\_0/aeis/timecapture.do\tHTTP/1.1 200 109 JOvopGXLSq4o-tWMV8Oj-6aDSILdcL3jd9bsyUiaI6a3vFO5o7dm!449867976!1464191968906 3eec121a91ac23b8:2be0a5e5:1533d1684e1:-7f72-00000000005fc371 4109 1464192012809 0.238\r",  
> "@version" =\> "1",  
> "@timestamp" =\> "2016-06-07T17:03:20.752Z",  
> "path" =\> "C:\HA\accesslog\trial.log",  
> "host" =\> "WIN-07LLQEN2SJB",  
> "type" =\> "txt",  
> "ClientAddr" =\> "167.57.21.143",  
> "date" =\> "2016-05-26",  
> "time" =\> "00:00:12",  
> "x-eap.wlsCustomLogField.VirtualHost" =\> "cms-corp-aeis-prd.server.ab.org.au:32028",  
> "cs-method" =\> "POST",  
> "cs-uri-stem" =\> "/aeis/7\_0\_0/aeis/timecapture.do",  
> "x-eap.wlsCustomLogField.Protocol" =\> "HTTP/1.1",  
> "sc-status" =\> "200",  
> "bytes" =\> "109",  
> "x-eap.wlsCustomLogField.RequestedSessionId" =\> "JOvopGXLSq4o-tWMV8Oj-6aDSILdcL3jd9bsyUiaI6a3vFO5o7dm!449867976!1464191968906",  
> "x-eap.wlsCustomLogField.Ecid" =\> "3eec121a91ac23b8:2be0a5e5:1533d1684e1:-7f72-00000000005fc371",  
> "x-eap.wlsCustomLogField.ThreadId" =\> "4109",  
> "x-eap.wlsCustomLogField.EndTs" =\> "1464192012809",  
> "time-taken" =\> "0.238"  
> }

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [June 8, 2016, 1:20pm UTC](https://discuss.elastic.co/t/logstash-map-paarsing-error-status-400/52045/5 "2016-06-08T13:20:15Z")

</div>

I turn out o find out the sollution here: [github.com/elastic/elasticsearch/issues/16283](http://github.com/elastic/elasticsearch/issues/16283)  
Another problem is the created field for indexing is too long. Shortening the name can solve the issue.

---

<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 6, 2017, 4:54am UTC](https://discuss.elastic.co/t/logstash-map-paarsing-error-status-400/52045/6 "2017-07-06T04:54:08Z")

</div>


