# Logstash Errors mapper\_parsing\_exception vs illegal\_argument\_exception

**URL:** <https://discuss.elastic.co/t/logstash-errors-mapper-parsing-exception-vs-illegal-argument-exception/236783>\
**Category:** Logstash\
**Created:** [June 11, 2020, 8:56pm UTC](https://discuss.elastic.co/t/logstash-errors-mapper-parsing-exception-vs-illegal-argument-exception/236783 "2020-06-11T20:56:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 11, 2020, 10:58pm UTC](https://discuss.elastic.co/t/logstash-errors-mapper-parsing-exception-vs-illegal-argument-exception/236783/3 "2020-06-11T22:58:23Z")

</div>

I believe the first exception indicates that in elasticsearch the field is an object, but you are trying to insert a string, and the second indicates that in elasticsearch the field is a string, but you are trying to insert an object.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-errors-mapper-parsing-exception-vs-illegal-argument-exception/236783)._
