Q:非洲食人族的酋长吃什么?

filebeat解析json字符串报错

Beats | 作者 Atom | 发布于2019年01月22日 | 阅读数:6962

1,nginx logs json format
for example
{ "@timestamp": "2017-05-09T15:20:04+08:00", "clientRealIp": "46.161.9.48", "size": 5568, "url": "/qiche/\xE5\xAE\xBF\xE5\xB7\x9E\xE6\x80\xA7\xE8\x8D\xAF\xE5\x93\x81\xE6\x89\xB9\xE5\x8F\x91\xE7\xBD\x91\xE3\x80\x90\xE5\x85\xA8\xE5\xA4\xA9\xE6\x9C\x8D\xE5\x8A\xA1\xE7\xA7\x8B\xE7\xA7\x8B=25317oo285\xE3\x80\x91\xE4\xB9\x96\xE4\xB9\x96\xE8\x8D\xAF\xE6\x9C\x89\xE4\xBB\x80\xE4\xB9\x88\xE7\x94\xA8/", "referrer": "-", "agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.1) Gecko/20100101 Firefox/26.0", "status": "200"}

2,filebeat log
2017-05-09T15:21:39+08:00 ERR Error decoding JSON: invalid character 'x' in string escape code
2017-05-09T15:21:40+08:00 ERR Error decoding JSON: invalid character 'x' in string escape code
2017-05-09T15:21:40+08:00 ERR Error decoding JSON: invalid character 'x' in string escape code
2017-05-09T15:21:40+08:00 ERR Error decoding JSON: invalid character 'x' in string escape code
已邀请:

Atom - beat-logstash-elasticsearch-kabana

赞同来自:

就是filebeat解析不了\x格式的数据,请问filebeat的配置文件中需要怎么设置?

要回复问题请先登录注册