README.md in fluent-plugin-numeric-counter-0.2.3 vs README.md in fluent-plugin-numeric-counter-0.3.0
- old
+ new
@@ -24,11 +24,11 @@
### NumericCounterOutput
Count messages that have attribute 'duration'(response time by microseconds), by several numeric ranges, per minutes.
<match accesslog.**>
- type numeric_counter
+ @type numeric_counter
unit minute # or 'count_interval 60s' or '45s', '3m' ... as you want
aggregate all # or 'tag'
count_key duration
# patternX: X(1-20)
@@ -45,11 +45,11 @@
</match>
Size specifier (like 10k, 5M, 103g) available as 1024\*\*1, 1024\*\*2, 1024\*\*3 ...., for example, for bytes of access log.
<match accesslog.**>
- type numeric_counter
+ @type numeric_counter
unit hour
aggregate tag
count_key bytes
pattern1 SMALL 0 1k
@@ -62,11 +62,11 @@
You can try to use negative numbers, and floating point numbers.... (not tested enough).
With 'output\_per\_tag' option and 'tag\_prefix', we get one result message for one tag:
<match accesslog.{foo,bar}>
- type numeric_counter
+ @type numeric_counter
unit hour
aggregate tag
count_key bytes
output_per_tag yes
tag_prefix byteslog
@@ -82,11 +82,11 @@
# message: {'SMALL_count' => 100, ... }
And you can get tested messages count with 'output\_messages' option:
<match accesslog.{foo,bar}>
- type numeric_counter
+ @type numeric_counter
unit hour
aggregate tag
count_key bytes
input_tag_remove_prefix accesslog
output_messages yes
@@ -96,10 +96,10 @@
</match>
# => tag: 'numcount'
# message: {'foo_messages' => xxx, 'bar_messages' => yyy, 'foo_SMALL_count' => 100, ... }
<match accesslog.{foo,bar}>
- type numeric_counter
+ @type numeric_counter
unit hour
aggregate tag
count_key bytes
output_per_tag yes
tag_prefix num