Parse multi line application log

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 \*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] :memo: BApi.INFO: HTTP 200: GET
*Response Body:*
*Response Body:*

[2019-01-14 00:20:55] :low: CApi.INFO: HTTP 200: GET
*Response Body:*

[2019-01-14 00:20:55] :error: DApi.INFO: HTTP 200: GET
*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})?\])+


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.

I finish to fix my post :slight_smile:

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