# Logstash Json Data processing issue

**URL:** <https://discuss.elastic.co/t/logstash-json-data-processing-issue/368309>\
**Category:** Logstash\
**Created:** [October 6, 2024, 6:33am UTC](https://discuss.elastic.co/t/logstash-json-data-processing-issue/368309 "2024-10-06T06:33:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [October 6, 2024, 5:24pm UTC](https://discuss.elastic.co/t/logstash-json-data-processing-issue/368309/6 "2024-10-06T17:24:22Z")

</div>

You can't have a field that is a keyword in some documents and an object in others. To resolve it you will need to either convert the field to an object when it is a keyword or convert the field to a keyword when it is an object. See [this](https://discuss.elastic.co/t/getting-illegal-state-exception-error-while-pushing-logs-to-elasticsearch/290029/2) thread.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-json-data-processing-issue/368309)._
