Skip to content

zwzch/fluent-plugin-pulsar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

fluent-plugin-pulsar

Fluentd input plugin to do as pulsar sink

Installation

RubyGems

gem install bundler
gem install fluentd
gem install digest-crc
gem install ruby_protobuf

Compile Pulsar API protocol buffer

  1. Clone proto file(PulsarApi.proto) from Pulsar Project page.
git clone https://github.com/apache/pulsar.git

(The proto file path is at pulsar-common/src/main/proto/PulsarApi.proto)

  1. Compile the proto file using rprotoc
rprotoc PulsarApi.proto
  1. Move PulsarApi.pb.rb to your project directory.

  2. copy lib/fluent/plugin/lib/* to your plugin dir.

Configuration

example:
$ fluent.conf
<source>
  @type pulsar
  @id pulsar_input
  tag debug.access
  pulsar_port 6650
  pulsar_host 127.0.0.1
  pulsar_topic my-topic
  pulsar_subscription sub
  pull_duration 0.1
</source>
<match debug.**>
    @type stdout
    @id stdout_output
</match>

Copyright

  • Copyright(c) 2019- zhengwei01
  • License
    • Apache License, Version 2.0

Thanks

About

fluent pulsar input

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages