Created
March 16, 2012 15:28
-
-
Save oranie/2050542 to your computer and use it in GitHub Desktop.
apache fluentd config
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
<match apache.access.**> | |
type copy | |
<store> | |
compress gzip | |
type file | |
path /var/log/td-agent/access_log | |
</store> | |
<store> | |
type datacounter | |
#unit minute | |
count_interval 300 | |
count_key status | |
tag apache_result.status | |
aggregate all | |
# patternX: X(1-9) | |
pattern1 2xx ^2\d\d$ | |
pattern2 3xx ^3\d\d$ | |
pattern3 4xx ^4\d\d$ | |
pattern4 5xx ^5\d\d$ | |
</store> | |
<store> | |
type datacounter | |
#unit minute | |
count_interval 300 | |
count_key response_time | |
tag apache_result.response_time | |
aggregate all | |
# patternX: X(1-9) | |
pattern1 0-100msec ^\d{1,5}$ | |
pattern2 100-200msec ^1\d{5}$ | |
pattern3 200-500msec ^[2-4]\d{5}$ | |
pattern4 500msec-1sec ^[5-9]\d{5}$ | |
pattern5 1sec_over ^\d{7,}$ | |
</store> | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment