fluent-plugin-datacounter 0.4.5 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/fluent-plugin-datacounter.gemspec +2 -2
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91d0b353b01ecba75105027f3ea432cb54659dda
|
4
|
+
data.tar.gz: 07d98018128765756fb478638531f778c5138f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a765c1d921fa731f6fdfb5beca42e6522a52585542b1d23a6ad2f07b859e2f2756d8b1407379169c20709ce2ecf07a49446248b78b9f32b674a9d8d26954c24
|
7
|
+
data.tar.gz: 8f4dc5d9acc4ff7f325647c3da6c0af16b36ca0574d990e0b79d34fa6de6e22d08aac8863b2df73e994df20ef058515be6f025ea142f8434dda7ef1b454e6073
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ DataCounterOutput emits messages contains results data, so you can output these
|
|
26
26
|
Count messages that have attribute 'referer' as 'google.com', 'yahoo.com' and 'facebook.com' from all messages matched, per minutes.
|
27
27
|
|
28
28
|
<match accesslog.**>
|
29
|
-
type datacounter
|
29
|
+
@type datacounter
|
30
30
|
unit minute
|
31
31
|
aggregate all
|
32
32
|
count_key referer
|
@@ -40,7 +40,7 @@ Count messages that have attribute 'referer' as 'google.com', 'yahoo.com' and 'f
|
|
40
40
|
Or, more exact match pattern, output per tags (default 'aggregate tag'), per hours.
|
41
41
|
|
42
42
|
<match accesslog.**>
|
43
|
-
type datacounter
|
43
|
+
@type datacounter
|
44
44
|
unit hour
|
45
45
|
count_key referer
|
46
46
|
# patternX: X(1-20)
|
@@ -52,7 +52,7 @@ Or, more exact match pattern, output per tags (default 'aggregate tag'), per hou
|
|
52
52
|
HTTP status code patterns.
|
53
53
|
|
54
54
|
<match accesslog.**>
|
55
|
-
type datacounter
|
55
|
+
@type datacounter
|
56
56
|
count_interval 1m # just same as 'unit minute' and 'count_interval 60s'
|
57
57
|
# you can also specify '30s', '5m', '2h' ....
|
58
58
|
count_key status
|
@@ -67,7 +67,7 @@ HTTP status code patterns.
|
|
67
67
|
If you want not to include 'unmatched' counts into percentage, use 'outcast_unmatched' configuration:
|
68
68
|
|
69
69
|
<match accesslog.**>
|
70
|
-
type datacounter
|
70
|
+
@type datacounter
|
71
71
|
count_key status
|
72
72
|
# patternX: X(1-20)
|
73
73
|
pattern1 2xx ^2\d\d$
|
@@ -81,7 +81,7 @@ If you want not to include 'unmatched' counts into percentage, use 'outcast_unma
|
|
81
81
|
With 'output_per_tag' option and 'tag_prefix', we get one result message for one tag, like below:
|
82
82
|
|
83
83
|
<match accesslog.{foo,bar}>
|
84
|
-
type datacounter
|
84
|
+
@type datacounter
|
85
85
|
count_key status
|
86
86
|
pattern1 OK ^2\d\d$
|
87
87
|
pattern2 NG ^\d\d\d$
|
@@ -95,7 +95,7 @@ With 'output_per_tag' option and 'tag_prefix', we get one result message for one
|
|
95
95
|
And you can get tested messages count with 'output_messages' option:
|
96
96
|
|
97
97
|
<match accesslog.{foo,bar}>
|
98
|
-
type datacounter
|
98
|
+
@type datacounter
|
99
99
|
count_key status
|
100
100
|
pattern1 OK ^2\d\d$
|
101
101
|
pattern2 NG ^\d\d\d$
|
@@ -106,7 +106,7 @@ And you can get tested messages count with 'output_messages' option:
|
|
106
106
|
# message: {'foo_messages' => xxx, 'foo_OK_count' => ... }
|
107
107
|
|
108
108
|
<match accesslog.baz>
|
109
|
-
type datacounter
|
109
|
+
@type datacounter
|
110
110
|
count_key status
|
111
111
|
pattern1 OK ^2\d\d$
|
112
112
|
pattern2 NG ^\d\d\d$
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-datacounter"
|
4
|
-
gem.version = "0.
|
4
|
+
gem.version = "0.5.0"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi"]
|
6
6
|
gem.email = ["tagomoris@gmail.com"]
|
7
7
|
gem.homepage = "https://github.com/tagomoris/fluent-plugin-datacounter"
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
|
17
|
-
gem.add_runtime_dependency "fluentd"
|
17
|
+
gem.add_runtime_dependency "fluentd", "< 0.14.0"
|
18
18
|
|
19
19
|
gem.add_development_dependency "bundler"
|
20
20
|
gem.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-datacounter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.14.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.14.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,11 +119,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.6.8
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Fluentd plugin to count records with specified regexp patterns
|
126
126
|
test_files:
|
127
127
|
- test/helper.rb
|
128
128
|
- test/plugin/test_out_datacounter.rb
|
129
|
-
has_rdoc:
|