# Parse multi line application log

**URL:** <https://discuss.elastic.co/t/parse-multi-line-application-log/169805>\
**Category:** Logstash\
**Created:** [February 25, 2019, 11:11am UTC](https://discuss.elastic.co/t/parse-multi-line-application-log/169805 "2019-02-25T11:11:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Worradorn\_Sirisang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/worradorn_sirisang/32/41290_2.png) [@Worradorn\_Sirisang](https://discuss.elastic.co/u/Worradorn_Sirisang)\
**Post date:** [February 25, 2019, 11:11am UTC](https://discuss.elastic.co/t/parse-multi-line-application-log/169805/1 "2019-02-25T11:11:10Z")

</div>

Hello all,  
I am new for elk stack. I try to parsing application using grok -\> using grok debugger for creating grok pattern but on grok debugger is alert me about miss match.

the my log pattern is outlined below

`[2019-01-14 00:20:55] :high: AApi.INFO: *HTTP 200:* GET https://uat-api.mycom.tech/v2/id/1-208991585 \*Response Body:\* \```{"firstName":{"en":"air","th":"air"},"lastName":{"en":"STAGING","th":"STAGING"},"DateNo":"2011010003434345","totalBP":18945,"eBP":0,"eBPY":0,"eP":18945,"eDate":"2020-12-31"}```

[2019-01-14 00:20:55] 📝 BApi.INFO: _HTTP 200:_ GET [https://uat-api.mycom.tech/v2/id/5-212132135](https://uat-api.mycom.tech/v2/id/5-212132135)  
\*Response Body:\*  
`{"firstName":{"en":"air","th":"air"},"lastName":{"en":"STAGING","th":"STAGING"},"DateNo":"2011010003434345","totalBP":18945,"eBP":0,"eBPY":0,"eP":18945,"eDate":"2020-12-31"}`  
\*Response Body:\*  
```{"firstName":{"en":"air","th":"air"},"lastName":{"en":"STAGING","th":"STAGING"},"DateNo":"2011010003434345","totalBP":18945,"eBP":0,"eBPY":0,"eP":18945,"eDate":"2020-12-31"}```

[2019-01-14 00:20:55] :low: CApi.INFO: _HTTP 200:_ GET [https://uat-api.mycom.tech/v2/id/5-212132135](https://uat-api.mycom.tech/v2/id/5-212132135)  
\*Response Body:\*  
```{"firstName":{"en":"air","th":"air"}```

[2019-01-14 00:20:55] :error: DApi.INFO: _HTTP 200:_ GET [https://uat-api.mycom.tech/v2/id/5-212132135](https://uat-api.mycom.tech/v2/id/5-212132135)  
\*Response Body:\*  
`````` `

My pattern that I creating in grok debugger is outline below

`%{DATESTAMP:timestamp} :%{WORD:loglevel}: %{JAVACLASS}: \*%{WORD:protocol} %{Number:retcode}:\* %{WORD:method} %{URI}\S\*Response Body:\*\S\'\'\'%{WORD:msg}\'\'\' (\[(%{WORD:msg})?\])+`

Regards

---

<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:** [February 25, 2019, 2:19pm UTC](https://discuss.elastic.co/t/parse-multi-line-application-log/169805/2 "2019-02-25T14:19:04Z")

</div>

It is impossible to read your log format if you do not use the right markdown. Please edit your post, select the log entries, and click on \</\> in the toolbar above the edit panel.

---

<div class="post-metadata">

**Author:** ![Worradorn\_Sirisang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/worradorn_sirisang/32/41290_2.png) [@Worradorn\_Sirisang](https://discuss.elastic.co/u/Worradorn_Sirisang)\
**Post date:** [February 26, 2019, 11:11pm UTC](https://discuss.elastic.co/t/parse-multi-line-application-log/169805/3 "2019-02-26T23:11:16Z")

</div>

Hello,  
I finish to fix my post 🙂

---

<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:** [March 26, 2019, 11:11pm UTC](https://discuss.elastic.co/t/parse-multi-line-application-log/169805/4 "2019-03-26T23:11:16Z")

</div>

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