README.rdoc in fluent-plugin-datacounter-0.2.0 vs README.rdoc in fluent-plugin-datacounter-0.2.1
- old
+ new
@@ -26,11 +26,11 @@
<match accesslog.**>
type datacounter
unit minute
aggregate all
count_key referer
- # patternX: X(1-9)
+ # patternX: X(1-20)
pattern1 google google.com
pattern2 yahoo yahoo.com
pattern3 facebook facebook.com
# but patterns above matches 'this-is-facebookXcom.xxxsite.com' ...
</match>
@@ -39,11 +39,11 @@
<match accesslog.**>
type datacounter
unit hour
count_key referer
- # patternX: X(1-9)
+ # patternX: X(1-20)
pattern1 google ^http://www\.google\.com/.*
pattern2 yahoo ^http://www\.yahoo\.com/.*
pattern3 twitter ^https://twitter.com/.*
</match>
@@ -52,10 +52,10 @@
<match accesslog.**>
type datacounter
count_interval 1m # just same as 'unit minute' and 'count_interval 60s'
# you can also specify '30s', '5m', '2h' ....
count_key status
- # patternX: X(1-9)
+ # patternX: X(1-20)
pattern1 2xx ^2\d\d$
pattern2 3xx ^3\d\d$
pattern3 404 ^404$ # we want only 404 counts...
pattern4 4xx ^4\d\d$ # pattern4 doesn't matches messages matches pattern[123]
pattern5 5xx ^5\d\d$