# Parsing a Raw JSON file "Invalid Setting for json filter"

**URL:** https://discuss.elastic.co/t/parsing-a-raw-json-file-invalid-setting-for-json-filter/280735
**Category:** Logstash
**Created:** [August 8, 2021, 2:59pm UTC](https://discuss.elastic.co/t/parsing-a-raw-json-file-invalid-setting-for-json-filter/280735 "2021-08-08T14:59:04Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [August 8, 2021, 3:52pm UTC](https://discuss.elastic.co/t/parsing-a-raw-json-file-invalid-setting-for-json-filter/280735/4 "2021-08-08T15:52:18Z")

</div>

Your JSON is pretty-printed across multiple lines. You will need to use a multiline codec to combine all the lines of a single JSON object into one [message] field. See [here](https://discuss.elastic.co/t/parsing-array-of-json-objects-with-logstash-and-injesting-to-elastic/203197/2) and [here](https://discuss.elastic.co/t/unable-to-parse-json-array-object-in-logstash/89247/2).

---

_[View the full topic](https://discuss.elastic.co/t/parsing-a-raw-json-file-invalid-setting-for-json-filter/280735)._
