# Mixed JSON input and Other Log files with Multiline codec

**URL:** <https://discuss.elastic.co/t/mixed-json-input-and-other-log-files-with-multiline-codec/36696>\
**Category:** Logstash\
**Created:** [December 9, 2015, 6:57am UTC](https://discuss.elastic.co/t/mixed-json-input-and-other-log-files-with-multiline-codec/36696 "2015-12-09T06:57:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 9, 2015, 7:32am UTC](https://discuss.elastic.co/t/mixed-json-input-and-other-log-files-with-multiline-codec/36696/2 "2015-12-09T07:32:58Z")

</div>

It's pretty clear that your current multiline pattern won't work for JSON lines that begin with a curly brace. Would changing the pattern to e.g. `^(\d+|\{")` help?

---

_[View the full topic](https://discuss.elastic.co/t/mixed-json-input-and-other-log-files-with-multiline-codec/36696)._
