Closed jvmlet closed 4 years ago
Hi @jvmlet
Can you remove the file://
from the beginning of the pathes and let me know if that changes the behaviour? Thank you.
I had same issue, but not sure if it was caused by same thing. My problem was that I got installed newest version of logstash-codec-protobuf plugin (1.2.2), but oficial documentation there was for older version (v1.2.1) https://www.elastic.co/guide/en/logstash/current/plugins-codecs-protobuf.html. I didn't notice that versions were different at the beginning.
After going through code I found two new properties that are in new version but were not documented. So in order to solve issue I replaced include_path with two other properties:
@rimvydas-pranciulis strange, the documentation should have been updated already since we released 1.2.2. Also, although we added those new configuration options the old include_path
should continue to work (if all the dependencies of the class_name
were specified as absolute paths in the include_path
).
We will look into that. FYI @IngaFeick
@jorgelbg include_path
only worked if everything was in one file. When I had two files I was getting error that require
fails (I put file without require
as first in include_path). I'm on Windows, using proto3 and used absolute file paths like c:/logstash/proto-files/test_pb.rb
Hello It looks like the imported proto (the corresponding
rb
file) can't be found. Here are my proto files:child.proto :
parent.proto :
Generated parent_pb.rb:
Note the require 'child_pb'
Generated child_pb.rb:
Both child_pb.rb and parent_pb.rb reside under C:/test/ directory.
The
proto-pipeline.conf
:Running
bin/logstash -f proto-pipeline.conf --config.test_and_exit
gives me below output :Note the (LoadError) no such file to load -- child_pb - probably caused by
require 'child_pb'
inparent_pb.rb
file.Please advise. Thanks