# Parsed JSON object/hash requires a target configuration option with json message

**URL:** <https://discuss.elastic.co/t/parsed-json-object-hash-requires-a-target-configuration-option-with-json-message/218472>\
**Category:** Logstash\
**Created:** [February 9, 2020, 3:46pm UTC](https://discuss.elastic.co/t/parsed-json-object-hash-requires-a-target-configuration-option-with-json-message/218472 "2020-02-09T15:46:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richzw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richzw/32/90002_2.png) [@richzw](https://discuss.elastic.co/u/richzw)\
**Post date:** [February 9, 2020, 3:46pm UTC](https://discuss.elastic.co/t/parsed-json-object-hash-requires-a-target-configuration-option-with-json-message/218472/1 "2020-02-09T15:46:01Z")

</div>

We met the following warning message as below under logstash 7.3

```auto
Parsed JSON object/hash requires a target configuration option {:source=>"message", :raw=>"[{\"itemBefore\":0,\"itemAward\":1,\"itemType\":\"hint\"}]"}

```

and the config

```
filter {
  json{
    source => "message"
    skip_on_invalid_json => true
    remove_field => ["message"]
  }
}

```

After searching the relate issue here, we cannot find the answer. Could someone help us to investigate it ?

---

<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:** [February 9, 2020, 4:06pm UTC](https://discuss.elastic.co/t/parsed-json-object-hash-requires-a-target-configuration-option-with-json-message/218472/2 "2020-02-09T16:06:54Z")

</div>

The source JSON is an array. An array has to be in a named field, that's why it requires a target option.

---

<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:** [March 8, 2020, 4:14pm UTC](https://discuss.elastic.co/t/parsed-json-object-hash-requires-a-target-configuration-option-with-json-message/218472/3 "2020-03-08T16:14:00Z")

</div>

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