I try to use Grok to match some log like below:
[2016-09-07 00:00:02] online.INFO: GenerateLogData: {"userType":"MERCHANT","targetPlatformUserNo":"5mwe"}
with pattern :
\[%{TIMESTAMP_ISO8601:timestamp}\] %{DATA:env}\.%{DATA:severity}: %{DATA:basetype}:%{DATA:json}
but the result is something unexpected
{
"@timestamp" => "2016-09-14T06:28:00.505Z",
"message" => "[2016-09-07 00:00:02] online.INFO: GenerateLogData:{\"userType\":\"MERCHANT\",\"targetPlatformUserNo\":\"5mwe\"} ",
"@version" => "1",
"host" => "0fbd5f9e910a",
"timestamp" => "2016-09-07 00:00:02",
"env" => "online",
"severity" => "INFO",
"basetype" => "GenerateLogData"
}
where is my json
field?