【问题标题】:Logstash old json schema outputLogstash 旧 json 模式输出
【发布时间】:2015-01-14 01:00:52
【问题描述】:

logstash json 架构在 logstash 1.2.0 中已更改。其中删除了“@”前缀和“@fields”组。它破坏了我的一些程序,因为代码是用旧模式构建的。有没有办法使用旧的 json 模式获取 logstash 输出?

我正在使用文件输入和弹性搜索输出。我尝试在输出配置中添加“codec => oldlogstashjson”,但没有任何改变。

【问题讨论】:

    标签: logstash


    【解决方案1】:

    我在 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.
    

    【讨论】:

    • 但我没有使用 elasticsearch_river 插件。相反,我使用的是弹性搜索。
    猜你喜欢
    • 1970-01-01
    • 2016-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-04
    相关资源
    最近更新 更多