Open PhilippHomann opened 5 years ago
Don't you need to base64-decode first ?
I base64 encoded the binary file to paste it here ;-) Not send the base64 encoded data to logstash.
How do you send then byte[]
over http ? Charset
,Content-Type
?
Can you add the file output to your pipeline without codec and compare the binaries ?
When using http input combined with protobuf codec I receive following error:
[WARN ][logstash.codecs.protobuf ] Couldn't decode protobuf: #<ProtocolBuffers::DecodeError: too many bytes when decoding varint>.
with other protoCouldn't decode protobuf: #<ProtocolBuffers::DecodeError: invalid message>
Tested with the very basic unicorn.proto from here, I receive error message above when using the protobuf codec with http input. With tcp input everything works fine.
tcp.conf:
http.conf:
unicorn.pb.pb.rb:
unicorn.bin (base64):
Input to logstash is done by: