Sha256: 736e23e023a75bff655e6e80f0cd6378eda5375b750e330fec147e81f470ec59

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

# Fluent::Plugin::Kafka

TODO: Write a gem description
TODO: Also, I need to write tests

## Installation

Add this line to your application's Gemfile:

    gem 'fluent-plugin-kafka'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install fluent-plugin-kafka

## Usage

### Input plugin

    <source>
      type   kafka
      host   <broker host>
      port   <broker port: default=9092>
      topics <listening topics(separate with comma',')>
      format <input text type (text|json)>
      add_prefix <tag prefix (Optional)>
      add_suffix <tag suffix (Optional)>
    </source>

### Output plugin (non-buffered)

    <match *.**>
      type             kafka
      brokers          <broker1_host>:<broker1_ip>,<broker2_host>:<broker2_ip>,..
      default_topic    <output topic>
      output_data_type (json|ltsv|attr:<record name>)
    </match>

### Buffered output plugin

    <match *.**>
      type             kafka_buffered
      brokers          <broker1_host>:<broker1_ip>,<broker2_host>:<broker2_ip>,..
      default_topic    <output topic>
      flush_interval   <flush interval (sec) :default => 60>
      buffer_type      (file|memory)
      output_data_type (json|ltsv|attr:<record name>)
    </match>

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-kafka-0.0.5 README.md