/usr/sbin/td-agent-gem install fluent-plugin-riak
fluent.conf
and add the following lines:<source>...</source>
section tells Fluentd to tail an Apache2-formatted log file located at /var/log/apache2/access_log
. Each line is parsed as an Apache access log event and tagged with the riak.apache
label.<match riak.**>...</match>
section tells Fluentd to look for events whose tags start with riak.
and send all matches to a Riak node located at localhost:8087
. You can send events to multiple nodes by writing nodes host1 host2 host3
instead.