使用 shuf 来打乱一个文件中的行或是选择文件中一个随机的行。

logstash 报错[ERROR][logstash.codecs.json ] JSON parse error, original data now in message field

Logstash | 作者 wq131311 | 发布于2019年03月26日 | 阅读数:8515

这个问题大家又遇到过吗?日志丢失严重[com.fclassroom.family.web.api.SystemController$$EnhancerBySpringCGLIB$$eca937c8]è°ç¨[getCurrentTime]; line: 1, column: 3]>, :data=>"--->>>  Request LOG:appType:null|sessionId:null|userIp:10.111.79.0|time:2019-03-25 00:01:20|API:/api/system/time|params:null|description:类[com.fclassroom.family.web.api.SystemController$$EnhancerBySpringCGLIB$$eca937c8]调用[getCurrentTime]"}
[2019-03-26T11:02:30,951][ERROR][logstash.codecs.json     ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'å¨å±éªè¯': was expecting ('true', 'false' or 'null')
 at [Source: å¨å±éªè¯; line: 1, column: 9]>, :data=>"全局验证"}
[2019-03-26T11:02:30,951][ERROR][logstash.codecs.json     ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'å¨å±éªè¯': was expecting ('true', 'false' or 'null')
 at [Source: å¨å±éªè¯; line: 1, column: 9]>, :data=>"全局验证"}
[2019-03-26T11:02:30,951][ERROR][logstash.codecs.json     ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'å­¦çæè¿ä¸æ¬¡èè¯æ¥å£æªè·åå°è¯å·å»¶è¿ä¿¡æ¯å称': was expecting ('true', 'false' or 'null')
 at [Source: å­¦çæè¿ä¸æ¬¡èè¯æ¥å£æªè·åå°è¯å·å»¶è¿ä¿¡æ¯å称,åæ°ï¼schoolId-28,å­¦çId-1166677,å¼å§æ¶é´-2018-11-26
[2019-03-26T11:02:30,951][ERROR][logstash.codecs.json     ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'Located': was expecting ('true', 'false' or 'null')
 at [Source: Located environment: name=cd-visual-board, profiles=[prod], label=null, version=a8a9294ae21c4a0fb39dff84dad75e5039bc4ddd, state=null; line: 1, column: 8]>, :data=>"Located environment: name=cd-visual-board, profiles=[prod], label=null, version=a8a9294ae21c4a0fb39dff84dad75e5039bc4ddd, state=null"}
[2019-03-26T11:02:30,951][ERROR][logstash.codecs.json     ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'å¨å±éªè¯': was expecting ('true', 'false' or 'null')
 at [Source: å¨å±éªè¯; line: 1, column: 9]>, :data=>"全局验证"}
[2019-03-26T11:02:30,952][ERROR][logstash.codecs.json     ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'å¨å±éªè¯': was expecting ('true', 'false' or 'null')
 at [Source: å¨å±éªè¯; line: 1, column: 9]>, :data=>"全局验证"}
[2019-03-26T11:02:30,952][ERROR][logstash.codecs.json     ] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'Located': was expecting ('true', 'false' or 'null')
 at [Source: Located environment: name=ssp-metadata, profiles=[prod], label=null, version=b2868b7b1ee6bbc26fc7e8d8f0ca403ccfc79715, state=null; line: 1, column: 8]>, :data=>"Located environment: name=ssp-metadata, profiles=[prod], label=null, version=b2868b7b1ee6bbc26fc7e8d8f0ca403ccfc79715, state=null"}

 
已邀请:

要回复问题请先登录注册