2016-12-14 35 views
0

私はlogstash-pluginを使用してコーデックプラグインを生成してインストールしました。私が実行しようとすると、私は次のエラーで終わる:lostash codecプラグインを実行中にエラーが発生しました

d:\Downloads\logstash-5.1.1>bin\logstash -f ..\logstash-avro\config.cfg JAVA_OPTS was set to [ -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutO fMemoryError -XX:HeapDumpPath="d:\Downloads/heapdump.hprof"]. Logstash will trust these options, and not set any default s that it might usually set 14:27:12.324 [LogStash::Runner] INFO logstash.codecs.avrotest - Using version 0.1.x codec plugin 'avrotest'. This plugi n isn't well supported by the community and likely has no maintainer. 14:27:12.338 [LogStash::Runner] ERROR logstash.agent - fetched an invalid config {:config=>"input { \n stdin{ codec => avrotest{}} \n} \noutput {\n stdout { codec => rubydebug }\n}\n\n", :reason=>"uninitialized constant LogStash::Codecs:: Line"}

は私がコーデックプラグインの内側にラインプラグインを使用することができるように、参照するか、何かをinitalizeする必要がありますか?あなたはlogstash構成で何かを逃しているよう

おかげで、

ヘルムート

+0

? – Kulasangar

+0

それはコーデックプラグインの書き込みに記載されているように、標準入力から実行唯一の試験である: 出力{ STDOUT {コーデック=> ruby​​debug} } – Helmut

+0

I 入力{=> avrotest {}} STDIN {コーデックを}あなたの 'codec => avrotest {}'に何か問題があると思ってください。ところで、何が最愛のの? – Kulasangar

答えて

0

例外を1として、それはそうです。 は、私は個人的にavroプラグインを試していないが、私が見たものから、あなたのinputこのように見てはいけない:あなたのlogstashファイルを表示することができれば

input { 
    stdin{ 
     codec => avrotest{} 
    } 
} 

Ref

+0

それは私にエラーを与える。私はここに記載されたガイドに従っていた:[リンク](https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_codec_plugin.html)最後に、実行するためのパラメータを示す 。 – Helmut

+0

あなたが示したように、設定ファイルが必要です。 それを指摘してくれてありがとう。 [Documentation](https://www.elastic.co/guide/en/logstash/current/_how_to_write_a_logstash_codec_plugin.html)は間違っています – Helmut

+0

@Helmutはうまくいきましたか? – Kulasangar

関連する問題