a1007790170
Xiang·x·L
2015-10-14 03:49

java执行linux命令从linux服务器上读取log日志文件,按行读从指定字符串开始读

10
  • java
  • io
  • linux

[INFO ] 2015-09-23 11:22:06,691 [threadPoolTaskExecutor-41] com.sto.pdaplatform.module.rediscommon.core.ParseObjectFactory.getParseObjFactory(ParseObjectFactory.java:27) >>> the original data is :{"inTime":"2015-09-23 11:
25:58","cnt":"1","opRecord":[{"effectiveType":"","expType":"10","frequencyNo":"","goodsType":"","inputWeight":"","lastOrgCode":"","waybillNo":"768999995555","weight":"","auxOpCode":"NEW","clientProgramRole":"0","deviceType":"PDA","opCod
e":"520","opOrgCode":"900000","opTerminal":"150100180220789","opTime":"2015-09-23 11:25:54","opUserCode":"9000000615","pdaUuid":"12293d94dd26409db4c370fa3e47c07c"}],"org":"900000","mty":"0520","sessionId":"081f9b6d0051409da81009db0eb397
0d","tid":"150100180220789","trace":"923000063"} ]]
这是读取的一行的记录 ,然后想让读取的时候从the original data is :冒号后面开始读取,只要json串。

目前代码。
图片说明

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答