Sha256: 54bcdbf8db919e9de24cb75e4d83a53043b6d7af644aba917d3b2576301132de

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

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_if record["code"] == "200"
      add_prefix filtered
    </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.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-select-0.0.2 README.markdown