# Example logstash.conf with multiline json to elasticsearch

**URL:** <https://discuss.elastic.co/t/example-logstash-conf-with-multiline-json-to-elasticsearch/244741>\
**Category:** Logstash\
**Created:** [August 12, 2020, 2:47pm UTC](https://discuss.elastic.co/t/example-logstash-conf-with-multiline-json-to-elasticsearch/244741 "2020-08-12T14:47:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annette1](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Annette1](https://discuss.elastic.co/u/Annette1)\
**Post date:** [August 12, 2020, 2:47pm UTC](https://discuss.elastic.co/t/example-logstash-conf-with-multiline-json-to-elasticsearch/244741/1 "2020-08-12T14:47:41Z")

</div>

kibana error - failed to format messages from /var/lib/containers/....json.log

filebeat config

"paths": [/var/lib/docker/cnotainers/_/_.log"]  
"fields": {"environement": "dev", "system" : "test" "level "application"},  
"json.keys\_uder\_root": false, "tags" ["docker", "json", "dev"],  
"multiline": [negate": true "pattern": "^\[|^[0-9]{4}-[0-9]{2}-[0-9] {2}",  
"match": "after"}, "type": "log"},

works when sending directly to elastic search ...but cannot get to work through logstash to elasticsearch.

---

<div class="post-metadata">

**Author:** ![Annette1](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Annette1](https://discuss.elastic.co/u/Annette1)\
**Post date:** [August 12, 2020, 4:03pm UTC](https://discuss.elastic.co/t/example-logstash-conf-with-multiline-json-to-elasticsearch/244741/2 "2020-08-12T16:03:24Z")

</div>

input beats in logstash. output elastic search

---

<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:** [September 9, 2020, 4:03pm UTC](https://discuss.elastic.co/t/example-logstash-conf-with-multiline-json-to-elasticsearch/244741/3 "2020-09-09T16:03:30Z")

</div>

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