tagomoris/fluent-plugin-datacounter — Issue #1: example config syntax error
Author: oranie
Created: 2012-02-23 04:58:56+00:00
State: open

type datacounter
unit min
count_key status
# patternX: X(1-9)
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$

※http://rubydoc.info/gems/fluent-plugin-datacounter/0.1.0/frames　samples
上記のサンプルで起動しようとすると、「unit min」がsyntax errorで失敗します。

/etc/init.d/td-agent restart
Shutting down td-agent: [失敗]
Starting td-agent: 2012-02-23 13:53:53 +0900: fluent/supervisor.rb:177:rescue in main_process: config error file="/etc/td-agent/td-agent.conf" error="flowcounter unit allows minute/hour/day"
----------------------------------------------------------------------------------------------------------------------------------------------------------------
min→minute

/etc/init.d/td-agent restart
Shutting down td-agent: [失敗]
Starting td-agent: [ OK ]