Created
November 15, 2012 11:13
-
-
Save matsumana/4078078 to your computer and use it in GitHub Desktop.
Fluentdの集約サーバ用設定ファイル (fluent-plugin-rewrite版)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type forward | |
</source> | |
<match apache.access.**> | |
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> | |
</match> | |
<match rewrited.apache.access.**> | |
type copy | |
<store> | |
type forest | |
subtype numeric_counter | |
remove_prefix rewrited.apache.access | |
<template> | |
tag response.apache.access.__TAG__ | |
aggregate tag | |
count_key response | |
pattern1 -10ms 0 10000 | |
pattern2 -100ms 10000 100000 | |
pattern3 -1s 100000 1000000 | |
pattern4 -3s 1000000 3000000 | |
pattern5 3s- 3000000 | |
</template> | |
</store> | |
<store> | |
type forest | |
subtype datacounter | |
remove_prefix rewrited.apache.access | |
<template> | |
tag_prefix status.apache.access | |
unit minute | |
output_per_tag yes | |
aggregate tag | |
output_messages yes | |
count_key status | |
pattern1 2xx ^2\d\d | |
pattern2 3xx ^3\d\d | |
pattern3 429 ^429 | |
pattern4 4xx ^4\d\d | |
pattern5 5xx ^5\d\d | |
</template> | |
</store> | |
</match> | |
<match response.apache.access.**> | |
type growthforecast | |
gfapi_url http://gf:5125/api/ | |
remove_prefix response.apache.access | |
service response_time | |
tag_for section | |
name_key_pattern .*_percentage$ | |
</match> | |
<match status.apache.access.**> | |
type growthforecast | |
gfapi_url http://gf:5125/api/ | |
remove_prefix status.apache.access | |
service http_status | |
section status | |
tag_for section | |
name_key_pattern .*_count$ | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment