Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有我的 Windows 版本,它将 logstash json 输出作为文件逐行捕获每个对象。但同样的美分,工作正常,但它在一行中写入所有输出.. 没有回车(输入)
例如:
预期{名称:abc,类别:第五}
{姓名:abc,班级:六}
{姓名:abc,班级:七}
但是作为 {Name: abc, class:fifth}{Name: abc, class:six}{Name: abc, class:seven}
为了获得正确格式化的输出以logstash进行调试,您可以简单地使用stdout. IE:
logstash
stdout
output { stdout { codec => rubydebug } <--- you could change this to your need }
标准输出概要