fluent-plugin-grepcounter 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/CHANGELOG.md +12 -0
- data/README.md +15 -12
- data/fluent-plugin-grepcounter.gemspec +3 -2
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e33868eff231419fbe756a0ffee44da515c0dd32
|
4
|
+
data.tar.gz: 58163aa587b8dccf1bbb8772a2e28d6d53b84b5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c461903fa92252cd705650cff061dec93374bfe0f940721269a1e1684b630ac742ce187be1eed42b2a56be9427ad097da1753b43b538b157d04e57628d20d5ed
|
7
|
+
data.tar.gz: 506d59a863255d75aa10192250f2c67e14e0dcece26d60573cb0093c08f5c4f5ae6e11a5947d330023107243905fa7e5db16dce74ac223cea0f554f8394235ab
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# fluent-plugin-grepcounter [![Build Status](https://secure.travis-ci.org/sonots/fluent-plugin-grepcounter.png?branch=master)](http://travis-ci.org/sonots/fluent-plugin-grepcounter) [![Dependency Status](https://gemnasium.com/sonots/fluent-plugin-grepcounter.png)](https://gemnasium.com/sonots/fluent-plugin-grepcounter)
|
2
2
|
|
3
|
-
Fluentd plugin to count the number of matched messages
|
3
|
+
Fluentd plugin to count the number of matched messages, and emit if exeeds the `threshold`.
|
4
4
|
|
5
5
|
## Configuration
|
6
6
|
|
@@ -32,7 +32,10 @@ Then, output bocomes as belows (indented):
|
|
32
32
|
"input_tag_last":"host1",
|
33
33
|
}
|
34
34
|
|
35
|
-
|
35
|
+
### output_with_joined_delimiter
|
36
|
+
|
37
|
+
As default, the `grepcounter` plugin outputs matched `message` as an array as shown above.
|
38
|
+
You may want to output `message` as a string, then use `output_with_joined_delimiter` option like:
|
36
39
|
|
37
40
|
<match syslog.**>
|
38
41
|
type grepcounter
|
@@ -81,21 +84,21 @@ Then, output bocomes as belows (indented). You can see the `message` field is jo
|
|
81
84
|
The comparation operator for the threshold (either of `>=` or `<=`). Default is `>=`, i.e., emit if count >= threshold.
|
82
85
|
NOTE: 0 count message will not be emitted even if `<=` is specified because standby nodes receive no message usually.
|
83
86
|
|
84
|
-
-
|
85
|
-
|
86
|
-
A `less than` threshold value, that is, emit if `count` value < specified value.
|
87
|
-
|
88
|
-
- less\_equal (from 0.2.0)
|
89
|
-
|
90
|
-
A `less than or eqaul` threshold value, that is, emit if `count` value <= specified value.
|
87
|
+
- greater\_equal (from 0.2.0)
|
91
88
|
|
89
|
+
This is same with `threshold` option. Emit if `count` value is greater than or equal to (>=) specified value.
|
90
|
+
|
92
91
|
- greater\_than (from 0.2.0)
|
93
92
|
|
94
|
-
|
93
|
+
Emit if `count` value is greater than (>) specified value.
|
94
|
+
|
95
|
+
- less\_than (from 0.2.0)
|
95
96
|
|
96
|
-
|
97
|
+
Emit if `count` value is less than (<) specified value.
|
98
|
+
|
99
|
+
- less\_equal (from 0.2.0)
|
97
100
|
|
98
|
-
|
101
|
+
Emit if `count` value is less than or equal to (<=) specified value.
|
99
102
|
|
100
103
|
- output\_tag
|
101
104
|
|
@@ -3,12 +3,13 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "fluent-plugin-grepcounter"
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.3.1"
|
7
7
|
s.authors = ["Naotoshi SEO"]
|
8
8
|
s.email = ["sonots@gmail.com"]
|
9
9
|
s.homepage = "https://github.com/sonots/fluent-plugin-grepcounter"
|
10
|
-
s.summary = "
|
10
|
+
s.summary = "Fluentd plugin to count the number of matched messages, and emit if exeeds the threshold"
|
11
11
|
s.description = s.summary
|
12
|
+
s.licenses = ["MIT"]
|
12
13
|
|
13
14
|
s.rubyforge_project = "fluent-plugin-grepcounter"
|
14
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-grepcounter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi SEO
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -80,7 +80,8 @@ dependencies:
|
|
80
80
|
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
83
|
+
description: Fluentd plugin to count the number of matched messages, and emit if exeeds
|
84
|
+
the threshold
|
84
85
|
email:
|
85
86
|
- sonots@gmail.com
|
86
87
|
executables: []
|
@@ -102,7 +103,8 @@ files:
|
|
102
103
|
- spec/out_grepcounter_spec.rb
|
103
104
|
- spec/spec_helper.rb
|
104
105
|
homepage: https://github.com/sonots/fluent-plugin-grepcounter
|
105
|
-
licenses:
|
106
|
+
licenses:
|
107
|
+
- MIT
|
106
108
|
metadata: {}
|
107
109
|
post_install_message:
|
108
110
|
rdoc_options: []
|
@@ -123,7 +125,8 @@ rubyforge_project: fluent-plugin-grepcounter
|
|
123
125
|
rubygems_version: 2.0.3
|
124
126
|
signing_key:
|
125
127
|
specification_version: 4
|
126
|
-
summary:
|
128
|
+
summary: Fluentd plugin to count the number of matched messages, and emit if exeeds
|
129
|
+
the threshold
|
127
130
|
test_files:
|
128
131
|
- spec/out_grepcounter_spec.rb
|
129
132
|
- spec/spec_helper.rb
|