No commit activity in last 3 years
No release in over 3 years
Fluentd plugin to output same file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0

Runtime

< 2, >= 0.10.58
 Project Readme

Fluent-plugin-samefile

Fluentd plugin to output same file.

Installation

# for fluentd
$ gem install fluent-plugin-samefile

# for td-agent2
$ sudo td-agent-gem install fluent-plugin-samefile

Usage

<match pattern>
  type samefile
  path /var/log/fluent/myapp.log
</match>

If need log rotation, use logrotate.d.

/etc/logrotate.d/td-agent_output

/path/to/logfile.log
{
  daily
  rotate 7
  compress
  delaycompress
  notifempty
  create 644 td-agent td-agent
  sharedscripts
  postrotate
    pid=/var/run/td-agent/td-agent.pid
    test -s $pid && kill -USR1 "$(cat $pid)"
  endscript
}

TODO

  • patches welcome!

Contributing

  1. Fork it ( https://github.com/bungoume/fluent-plugin-samefile/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Copyright

Copyright (c) 2015 Yuri Umezaki

License

Apache License, Version 2.0