Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.