Sha256: 142f1bafd4deb9c2b96f036672ff41a12353404ff41f1182866add31f62882b4

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

= fluent-plugin-rewrite-tag-filter

== Overview

=== RewriteTagFilterOutput

Modify Tags with data matches any of specified regexp patterns in specified attribute.

== Installation

    # native fluentd user
    gem install fluent-plugin-rewrite-tag-filter
    
    # td-agent user
    /usr/lib64/fluent/ruby/bin/gem install fluent-plugin-rewrite-tag-filter

== Configuration

Format

    rewruterule<num:1-200> <attribute> <regex_pattern> <rewrite_tag>

Usage

    <match td.apache.access>
      type rewrite_tag_filter
      rewriterule1 domain ^maps\.google\.com$ site.GoogleMap
      rewriterule2 domain ^news\.google\.com$ site.GoogleNews
      rewriterule3 domain ^mail\.google\.com$ site.GoogleMail
    </match>

    <match site.*>
      type mongo
      host 10.10.0.36
      database apache_access
      remove_tag_prefix site
      capped
      capped_size 100m
    </match>

Example

- Example1: how to analyze response_time, response_code and user_agent for each virtual domain websites.
  - https://github.com/y-ken/fluent-plugin-rewrite-tag-filter/blob/master/example.conf

== TODO

- patches welcome!

== Copyright

Copyright:: Copyright (c) 2012- Kentaro Yoshida
License::   Apache License, Version 2.0

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-rewrite-tag-filter-0.0.2 README.rdoc