【问题标题】:Logstash codec rubydebug is not workingLogstash 编解码器 ruby​​debug 不工作
【发布时间】:2018-09-11 17:25:25
【问题描述】:

在 windows 机器上安装了最新版本的 Logstash 并尝试执行以下配置。

"
input{
stdin{}
}
output
{
stdout {codec => rubydebug}

}"

输出数据未显示格式。你需要安装 ruby​​debug 插件吗?怎么在windows上安装?执行的命令是什么?

【问题讨论】:

    标签: elasticsearch logstash elasticsearch-plugin


    【解决方案1】:

    配置文件:logstash-simple.conf在logstash目录中

    input { stdin { } }
    output {
      elasticsearch { hosts => ["localhost:9200"] }
      stdout { codec => rubydebug }
    }
    

    然后从 windows(我的情况)运行以下命令

    bin\logstash.bat -f logstash-simple.conf
    

    【讨论】:

    • 为什么我们需要弹性搜索?你能提供更多关于这方面的信息吗
    • 使用 .conf 文件更新后,输出为 2018-04-02T13:39:17.620Z helpmetolearn-machine Hello world .. 输出格式不是预期的一种。我期待@Version,主机,时间戳文件
    • 如果你使用的是elasticsearch,那么上面的配置,如果你没有使用elasticsearch,可以跳过这一行。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-19
    • 1970-01-01
    • 1970-01-01
    • 2015-11-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多