Skip to content

Instantly share code, notes, and snippets.

@matsumana
Created November 15, 2012 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsumana/4078402 to your computer and use it in GitHub Desktop.
Save matsumana/4078402 to your computer and use it in GitHub Desktop.
Fluentd受信側 fluent-plugin-rewrite版とfluent-plugin-rewrite-tag-filter版のdiff
% diff fluent_aggregate_rewrite.conf fluent_aggregate_rewrite-tag-filter.conf
6,23c6,11
< type rewrite
< add_prefix rewrited
< <rule>
< key path
< pattern \.(gif|jpe?g|png|ico|css|js)$
< ignore true
< </rule>
< <rule>
< key path
< pattern ^/$
< replace /top
< </rule>
< <rule>
< key path
< pattern ^\/([^\/]+)
< fallback others
< append_to_tag true
< </rule>
---
> type rewrite_tag_filter
> capitalize_regex_backreference yes
> rewriterule1 path \.(gif|jpe?g|png|ico|css|js)$ ignore
> rewriterule2 path ^/$ rewrited.apache.access.top
> rewriterule3 path ^\/([^\/]+) rewrited.apache.access.$1
> rewriterule4 path .* rewrited.apache.access.others #fallback
80a69,72
>
> <match ignore>
> type null
> </match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment