Fluent input plugin for gRPC
$ gem install fluent-plugin-grpc-2
Add following line to your Gemfile:
gem "fluent-plugin-grpc-2"
And then execute:
$ bundle
You can generate configuration template:
$ fluent-plugin-config-format input grpc-2
$ gem build fluent-plugin-grpc.gemspec
$ gem install grpc
$ gem install grpc-tools
$ grpc_tools_ruby_protoc -I lib/fluent/plugin/proto --ruby_out=lib/fluent/plugin --grpc_out=lib/fluent/plugin lib/fluent/plugin/proto/fluent-grpc.proto
$ gem install fluentd
$ fluentd -c conf/fluentd.conf -vv
$ curl --header "Content-Type: application/json" --request POST --data "{\"json\":\"message\"}" http://localhost:9880
$ ruby demo_client.rb
- Copyright(c) 2020- Silvan Brenner
- License
- Apache License, Version 2.0