此logStash错误的原因是什么:异常=>#< &quot“ logstash” :: json :: parsererror:value_string中的意外输入
我有以下日志行
{"code":200,"message":"ok","responseBody":{"token":"asdadqwrqwkjrqwejr"},"time":"4545425244"}
,并使用Logstash JSON插件来解析此日志,但是LogStash显示了Logstash-plain.log中的以下错误:
exception=>#< "LogStash" ::Json::ParserError: Unexpected end-of-input in VALUE_STRING
有什么问题? thanx
I have the following log line
{"code":200,"message":"ok","responseBody":{"token":"asdadqwrqwkjrqwejr"},"time":"4545425244"}
and using logstash json plugin to parse this log but logstash show following error in logstash-plain.log :
exception=>#< "LogStash" ::Json::ParserError: Unexpected end-of-input in VALUE_STRING
what is the problem ?
thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其
当解析器到达文本的末尾时,在试图读取值的同时将 抛出。例如,以下将产生该错误,因为它缺少闭合双引号。
如果它在读取字段名称时用完了文本,则异常将是
字段名称中的意外输入
(这将发生在{“ Message>”) 。
The exception
is thrown when the the parser reaches the end of the text to be parsed whilst trying to read a value. For example, the following will produce that error because it is missing a closing double quote.
If it runs out of text whilst reading the name of a field the exception will be
Unexpected end-of-input in field name
(that would happen for{"message}
).