No commit activity in last 3 years
No release in over 3 years
This is copy of out_route.rb originally written by frsyuki
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.14.0
 Project Readme

fluent-plugin-route

Fluentd output plugin to rewrite tags to route messages.

Requirements

fluent-plugin-route fluentd ruby
>= 1.0.0 >= v0.14.0 >= 2.1
< 1.0.0 < v0.14.0 >= 1.9

Configuration

Example 1: Use only tag

<match worker.**>
  @type route
  remove_tag_prefix worker
  <route **>
    add_tag_prefix metrics.event
    copy # For fall-through. Without copy, routing is stopped here. 
  </route>
  <route **>
    add_tag_prefix backup
    copy
  </route>
</match>

<match metrics.event.**>
  @type stdout
</match>

<match backup.**>
  @type file
  path /var/log/fluent/bakcup
</match>

Example 2: Use label

<match worker.**>
  @type route
  remove_tag_prefix worker
  add_tag_prefix metrics.event
  <route **>
    copy
  </route>
  <route **>
    copy
    @label @BACKUP
  </route>
</match>

<match metrics.event.**>
  @type stdout
</match>

<label @BACKUP>
  <match metrics.event.**>
    @type file
    path /var/log/fluent/bakcup
  </match>
</label>

TODO

  • tests

Copyright