This is similar to the
file build-in output plugin, but
tag_file decides output directory using tag of events.
% gem install fluent-plugin-tagfile
#/etc/fluentd/fluent.conf <match prefix.**> type tag_file path /var/log/fluent compress gzip time_slice_format %Y/%m/%d/%H/%M flush_interval 10m </match>
Fluent with such conf file behaves as follows.
Suppose that tag is
prefix.foo.bar and time is
Look for all events whose tag starts with
Create buffer file in
pathdirectory such as
In every minutes, fluent tries to flush the buffer, then
/var/log/fluent/foo/bar/2012/02/01/18/46/N.log.gzis created. N is a unique number in the directory.
/ like this example, it is used as the directory hierarchy.