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
*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
*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
*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