我有日志文件,我自己在nifi环境中看起来像这样:
“2017-11-28 14:22:32.340 https://linkhere(获得服务) / http://localhost:8080/nifi从服务获取数据:成功 收到回复“
我有3种类型的日志(空响应,良好的响应和limitExcedded) 我想将这些数据转换为json,如下所示:
[ {
"timestamp" : "2017-11-28 15:06:45,031",
"level" : "GOODResponse",
"message" : "https://linkhere (Get Service) /http://localhost:8080/nifigetting data from Service:Successfully received response" }]