【发布时间】:2015-01-14 01:00:52
【问题描述】:
logstash json 架构在 logstash 1.2.0 中已更改。其中删除了“@”前缀和“@fields”组。它破坏了我的一些程序,因为代码是用旧模式构建的。有没有办法使用旧的 json 模式获取 logstash 输出?
我正在使用文件输入和弹性搜索输出。我尝试在输出配置中添加“codec => oldlogstashjson”,但没有任何改变。
【问题讨论】:
标签: logstash
logstash json 架构在 logstash 1.2.0 中已更改。其中删除了“@”前缀和“@fields”组。它破坏了我的一些程序,因为代码是用旧模式构建的。有没有办法使用旧的 json 模式获取 logstash 输出?
我正在使用文件输入和弹性搜索输出。我尝试在输出配置中添加“codec => oldlogstashjson”,但没有任何改变。
【问题讨论】:
标签: logstash
我在 logstash GitHub 上问过同样的问题。
有答案:
Elasticsearch is deprecating rivers soon. You should not be using this output. It is not being carried over to Logstash 1.5.
In Logstash 1.4.2, the elasticsearch_river plugin does not support using the output codec, which is why it does not work for you.
【讨论】: