# Logstash Unexpected character ('-' (code 45)): was expecting comma to separate Array entries

**URL:** <https://discuss.elastic.co/t/logstash-unexpected-character-code-45-was-expecting-comma-to-separate-array-entries/224821>\
**Category:** Logstash\
**Created:** [March 24, 2020, 11:35am UTC](https://discuss.elastic.co/t/logstash-unexpected-character-code-45-was-expecting-comma-to-separate-array-entries/224821 "2020-03-24T11:35:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 24, 2020, 12:32pm UTC](https://discuss.elastic.co/t/logstash-unexpected-character-code-45-was-expecting-comma-to-separate-array-entries/224821/2 "2020-03-24T12:32:03Z")

</div>

> [@Rahul\_Ravichandran](#):
>
> raw=\>"[2020-03-24 11:15:33] file\_db\_logger.INFO:

That is not valid JSON. You could parse the prefix off using [dissect](https://discuss.elastic.co/t/how-to-parse-mix-json-logs/167594/2).

---

_[View the full topic](https://discuss.elastic.co/t/logstash-unexpected-character-code-45-was-expecting-comma-to-separate-array-entries/224821)._
