No commit activity in last 3 years
No release in over 3 years
fluent-plugin-select is the non-buffered plugin that can be filtered by ruby script.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0.10.24
~> 0.9.2.2
 Project Readme

fluent-plugin-select-if rename to fluent-plugin-select

fluent-plugin-select

fluent-plugin-select(out_select) is the non-buffered output plugin that can filter event logs by using ruby script.

Example

This sample config outputs access logs that have status code 200.

<source>
  type tail
  format apache
  path /var/log/httpd-access.log
  tag tag
</source>
<match tag>
  type select
  select record["code"] == "200"
  add_prefix filtered
  timeout 1s
</match>
<match filtered.tag>
  type file
  path output.log
</match>

The parameter "select" can use 3 variables in event log; tag, time, record. The format of time is an integer number of seconds since the Epoch. The format of record is hash.

tag is alternative for add_prefix. The 2 following match directives are same:

<match tag>
  type select
  select record["code"] == "200"
  add_prefix filtered
  timeout 1s
</match>
<match tag>
  type select
  select record["code"] == "200"
  tag filtered.tag
  timeout 1s
</match>