logstash-codec-protobuf
logstash-codec-protobuf copied to clipboard
Developer
Logstash information:
Please include the following information:
- Logstash version (e.g.
bin/logstash --version
) - Logstash installation source (e.g. built from source, with a package manager: DEB/RPM, expanded from tar or zip archive, docker)
- How is Logstash being run (e.g. as a service/service manager: systemd, upstart, etc. Via command line, docker/kubernetes)
- How was the Logstash Plugin installed
JVM (e.g. java -version
):
If the affected version of Logstash is 7.9 (or earlier), or if it is NOT using the bundled JDK or using the 'no-jdk' version in 7.10 (or higher), please provide the following information:
- JVM version (
java -version
) - JVM installation source (e.g. from the Operating System's package manager, from source, etc).
- Value of the
JAVA_HOME
environment variable if set.
OS version (uname -a
if on a Unix-like system):
Description of the problem including expected versus actual behavior:
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including (e.g.) pipeline definition(s), settings, locale, etc. The easier you make for us to reproduce it, the more likely that somebody will take the time to look at it.
- I generated ruby file using protoc compiler from .proto file( Version 3.19.3)
- Getting error "Unable to load file: /datadrive/protobufdata/audit_pb.rb. Reason: #<NoMethodError: undefined method `add_file' for #Google::Protobuf::Builder:0x7f842c8a>" when we put the rb file and running in logstash.
- We using logstash version 7.17.0 and plugin version 1.2.5.
Provide logs (if relevant):
ogStash::Codecs::Protobuf/@class_name = "AuditTemplate" [2022-02-08T20:43:41,999][DEBUG][logstash.codecs.protobuf ] config LogStash::Codecs::Protobuf/@protobuf_root_directory = "/datadrive/protobufdata/" [2022-02-08T20:43:41,999][DEBUG][logstash.codecs.protobuf ] config LogStash::Codecs::Protobuf/@class_file = "/datadrive/protobufdata/audit_pb.rb" [2022-02-08T20:43:42,000][DEBUG][logstash.codecs.protobuf ] config LogStash::Codecs::Protobuf/@enable_metric = true [2022-02-08T20:43:42,000][DEBUG][logstash.codecs.protobuf ] config LogStash::Codecs::Protobuf/@include_path = [] [2022-02-08T20:43:42,000][DEBUG][logstash.codecs.protobuf ] config LogStash::Codecs::Protobuf/@stop_on_error = false [2022-02-08T20:43:42,000][DEBUG][logstash.codecs.protobuf ] config LogStash::Codecs::Protobuf/@pb3_encoder_autoconvert_types = true [2022-02-08T20:43:42,001][DEBUG][logstash.codecs.protobuf ] config LogStash::Codecs::Protobuf/@pb3_set_oneof_metainfo = false [2022-02-08T20:43:42,028][ERROR][logstash.codecs.protobuf ] Unable to load file: /datadrive/protobufdata/audit_pb.rb. Reason: #<NoMethodError: undefined method `add_file' for #Google::Protobuf::Builder:0xcea1962> [2022-02-08T20:43:42,035][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main,