logstash-codec-protobuf icon indicating copy to clipboard operation
logstash-codec-protobuf copied to clipboard

Developer

Open rahulkilaru82 opened this issue 3 years ago • 0 comments

Logstash information:

Please include the following information:

  1. Logstash version (e.g. bin/logstash --version)
  2. Logstash installation source (e.g. built from source, with a package manager: DEB/RPM, expanded from tar or zip archive, docker)
  3. How is Logstash being run (e.g. as a service/service manager: systemd, upstart, etc. Via command line, docker/kubernetes)
  4. 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:

  1. JVM version (java -version)
  2. JVM installation source (e.g. from the Operating System's package manager, from source, etc).
  3. 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.

  1. I generated ruby file using protoc compiler from .proto file( Version 3.19.3)
  2. 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.
  3. 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,

rahulkilaru82 avatar Feb 08 '22 21:02 rahulkilaru82