Hi, I have a record that is generated by an application, this log comes as JSON.
But the log is coming broken.
Follow Log:
(2017-06-05 11:53:22) {
"__v": 0,
"_id": "Joq3PHwo8AHiUueiZ73VXpavSo84azUg30tydFVWpQTJcvMD4ZhLLDyg9rJKFVTHOChTk4giWxBVU1V6jxTRbzJBB57J1Y4UYxO6",
"request": {
"payload": {
"addressId": "2354235235346"
},
"path": "/x2/asd/s",
"method": "post",
"headers": {
"content-length": "29",
"connection": "Keep-Alive",
"x-forwarded-server": "teste.local.local",
"x-forwarded-host": "Teste.local.local",
"incap-client-ip": "189.121.52.130",
"x-forwarded-for": "181.15.58.30, 19.57.140.8",
"incap-proxy-684": "OK",
"user-agent": "okhttp/3.6.0",
"accept-encoding": "gzip",
"content-type": "application/json; charset=UTF-8",
"origin": "CCI",
"agent": "Android;6.0;XT1097;motorola;0.27.0_homolog.CCI",
"authorization": "authorizat234ionnasdaspdkasx asda, blu me ",
"host": "meuhost.teste.teste"
}
},
"statusCode": 500,
"code": 0,
"details": "(timers.js:596:5)\n\n{"isBoom":true,"isServer":true,"data":null,"output":{"statusCode":500,"payload":{"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred","code":0},"headers":{}}}",
"level": "ERROR",
"_created_at": "2017-06-05T14:53:22.840Z"
Important is the value : "message, level, details and hour"
This is my filter:
if [type] == "mobile-prod" {
multiline {
pattern => '^\s'
what => "next"
}
}
can you help me with filter?
thanks.