Repository is archived
No commit activity in last 3 years
No release in over 3 years
Extension of in_tail plugin to customize log rotate timing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 1.3
~> 0.9

Runtime

~> 0.14
 Project Readme

fluent-plugin-tail-ex-rotate

Build Status

fluent-plugin-tail-ex-rotate is a fluentd plugin to manage the timing of file rotation.

Install

gem install fluent-plugin-tail-ex-rotate

Test

bundle install
rake test

Setting

The setting of fluent-plugin-tail-ex-rotate is roughly the same with in_tail built-in plugin. Difference between fluent-plugin-tail-ex-rotate and in_tail built-in plugin setting are :expand_rotate_time attribute.

:expand_rotate_time attribute must be set number of seconds.

For example,

<source>
  type tail_ex_rotate
  path /var/log/httpd/access_log.%Y%m%d
  tag access_process_time
  pos_file /var/log/td-agent/httpd-access.log.pos
  time_format %d/%b/%Y:%H:%M:%S %z
  expand_rotate_time 18000s
  types process_time:integer
</source>

Daily file lotation starts with 05:00 beacause of this setting.