# Filebeat not parsing json correctly

**URL:** <https://discuss.elastic.co/t/filebeat-not-parsing-json-correctly/209863>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 28, 2019, 1:18pm UTC](https://discuss.elastic.co/t/filebeat-not-parsing-json-correctly/209863 "2019-11-28T13:18:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sreekanth\_Ragi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sreekanth_ragi/32/58498_2.png) [@Sreekanth\_Ragi](https://discuss.elastic.co/u/Sreekanth_Ragi)\
**Post date:** [November 28, 2019, 1:18pm UTC](https://discuss.elastic.co/t/filebeat-not-parsing-json-correctly/209863/1 "2019-11-28T13:18:31Z")

</div>

Team,

I have multiline message that is a json, I have tried parsing it using the multi line filter, though the below filter parses it all correctly except for the closing '}'. Any ideas on what I'm doing wrong. I know one alternative is to mutate the message at logstash and add the missing brace, but I wanted to check if filebeat can by itself send the message correctly.

Sample log message

Sat Nov 23 08:34:30.238 2019 INFO: pid 15 tid 140527294039808: 4202 201911230833054:CacheManager::verifyRequest: DB logging is done (201911230833054)  
Sat Nov 23 08:34:30.238 2019 LOW: pid 15 tid 140527294039808: 4510 201911230833054:verifyRequest: Json message 'abc': {  
"id" : "id1",  
"name" : "name1",  
"Type" : "type1",  
"version" : "2.1.0",  
"status" : "01",  
"Tid" : "f1c84c86-a6df-c7141fcbb112"  
} (201911230833054)  
Sat Nov 23 08:34:30.238 2019 INFO: pid 15 tid 140527294039808: 4209 201911230833054:handle\_req: end (201911230833054)

The filebeat config looks like the following  
multiline.pattern: '^[[:space:]]'  
multiline.negate: false  
multiline.match: after  
mutliline.flush\_pattern: '^}'

---

<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:** [December 26, 2019, 1:18pm UTC](https://discuss.elastic.co/t/filebeat-not-parsing-json-correctly/209863/2 "2019-12-26T13:18:34Z")

</div>

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