Reputation: 105
i've generated a codec plugin using the logstash-plugin generate and installed it. when i try to run, i end up with the following error:
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"}
Do i need to reference or initalize something, so that i can use the Line plugin inside the codec plugin?
thanks,
Helmut
Upvotes: 0
Views: 373
Reputation: 9444
As per the exception, it seems like you're missing out something in your logstash configuration.
I haven't tried out avro
plugin personally, but from what I saw shouldn't your input
look like this:
input {
stdin{
codec => avrotest{}
}
}
Upvotes: 0