【问题标题】:Logstash Pipe Plugin Not Working on WindowsLogstash 管道插件在 Windows 上不起作用
【发布时间】:2017-06-27 02:23:14
【问题描述】:

我正在尝试执行 Logstash-output-pipe 插件,但即使是最简单的配置,我也无法让它工作。我正在执行这个命令:

bin\logstash.bat --path.settings /I:/logstash-5.2.2/config -l logs -f pipetest.conf

...并在控制台上获取此输出:

Sending Logstash's logs to logs which is now configured via log4j2.properties
[2017-06-19T11:44:07,765][INFO ][logstash.pipeline        ] Starting pipeline {"id"=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>5, "pipeline.max_inflight"=>500}
[2017-06-19T11:44:07,797][INFO ][logstash.pipeline        ] Pipeline main started
[2017-06-19T11:44:07,968][INFO ][logstash.outputs.pipe    ] Opening pipe {:command=>"echo hello"}
[2017-06-19T11:44:07,984][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=>9600}
{
    "@timestamp" => 2017-06-19T16:44:07.828Z,
          "host" => "v10072384",
      "@version" => "1",
         "clock" => 1,
          "type" => "heartbeat"
}
[2017-06-19T11:44:17,819][ERROR][logstash.outputs.pipe    ] Error writing to pipe, closing pipe. {:command=>"echo hello", :pipe=>#<PipeWrapper:0x5a0d967d @pipe=#<IO:fd 448>, @active=true>}
[2017-06-19T11:44:17,819][INFO ][logstash.outputs.pipe    ] Closing pipe "echo hello"
[2017-06-19T11:44:17,834][INFO ][logstash.outputs.pipe    ] Opening pipe {:command=>"echo hello"}
[2017-06-19T11:44:17,912][INFO ][logstash.outputs.pipe    ] Starting stale pipes cleanup cycle {:pipes=>{"echo hello"=>#<PipeWrapper:0x19499944 @pipe=#<IO:fd 450>, @active=true>}}
{
    "@timestamp" => 2017-06-19T16:44:17.803Z,
          "host" => "v10072384",
      "@version" => "1",
         "clock" => 2,
          "type" => "heartbeat"
}
[2017-06-19T11:44:27,819][ERROR][logstash.outputs.pipe    ] Error writing to pipe, closing pipe. {:command=>"echo hello", :pipe=>#<PipeWrapper:0x19499944 @pipe=#<IO:fd 450>, @active=false>}
[2017-06-19T11:44:27,819][INFO ][logstash.outputs.pipe    ] Closing pipe "echo hello"
[2017-06-19T11:44:27,819][INFO ][logstash.outputs.pipe    ] Opening pipe {:command=>"echo hello"}
{
    "@timestamp" => 2017-06-19T16:44:27.803Z,
          "host" => "v10072384",
      "@version" => "1",
         "clock" => 3,
          "type" => "heartbeat"
}

这是我的 Logstash 配置文件:

input {
    heartbeat {
        message => "sequence"
        interval => 10
        type => "heartbeat"
    }
}
output {
    pipe {
        command => "echo hello"
    }
    stdout {
        codec => rubydebug
    }
}

我在 Windows 7 Enterprise(64 位)Service Pack 1 上运行 Logstash 版本 5.2.2、Logstash-output-pipe 插件版本 3.0.2。

我们将不胜感激任何建议或见解。

【问题讨论】:

    标签: logstash


    【解决方案1】:

    我已经放弃了 pipe 插件,改用 exec 插件了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-02
      • 2018-09-29
      • 1970-01-01
      • 2020-06-11
      相关资源
      最近更新 更多