Commit b912ec66 authored by Klaus Wölfel's avatar Klaus Wölfel

Add usage example to readme

parent 6a4b0ff6
......@@ -3,5 +3,50 @@ fluent-plugin-system
[Fluentd][] input plugin for binary files based on in_tail.
[Fluentd]: http://fluentd.org/
Usage Example
=============
This exmaple shows how to install and configure fluent-plugin-bin together
with fluent-plugin wendelin output plugin to ingest binary files into
[Wendelin][].
sudo apt-get install supervisor
sudo service supervisor restart
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.0 ruby2.0-⁠⁠dev make
sudo gem install fluentd --no-ri --no-rdoc
sudo mkdir -p /etc/fluent/plugin
cd /etc/fluent/plugin
sudo wget https://lab.nexedi.com/nexedi/fluent-plugin-bin/raw/master/lib/fluent/plugin/in_bin.rb
sudo wget https://lab.nexedi.cn/nexedi/fluent-plugin-wendelin/raw/master/lib/fluent/plugin/out_wendelin.rb
sudo wget https://lab.nexedi.cn/nexedi/fluent-plugin-wendelin/raw/master/lib/fluent/plugin/wendelin_client.rb
Create /etc/fluent/fluentd.conf:
<source>
@type bin
format none
path /path/to/files/*.ext
pos_file /mic/upload.pos
enable_watch_timer false
read_from_head true
tag my_prefix.*
</source>
<match my_prefix.path.to.files.*.ext>
@type wendelin
@id wendelin_out
streamtool_uri https://wendelin_url/portal_ingestion_policies/my_policy
user my_user_name
password my_password
buffer_type memory
flush_interval 1s
disable_retry_limit true
</match>
[Fluentd]: http://fluentd.org
[Wendelin: http://www.wendelin.io
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment