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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bddb5d5327eec9e655863fc3cb7c6df468ebf818
4
- data.tar.gz: c5d37235947a78bdf39cb45819434f2ae0357b06
3
+ metadata.gz: e33868eff231419fbe756a0ffee44da515c0dd32
4
+ data.tar.gz: 58163aa587b8dccf1bbb8772a2e28d6d53b84b5d
5
5
  SHA512:
6
- metadata.gz: 978c44205ca7867084429682d76be4c380fee8c2fc2b34e32d8855cb78c8da232c4da6430dbd0b5b98c2209c6a4a19afcdd1dbddb1e05743c08da5065b9a5f74
7
- data.tar.gz: d20233e52d1732422756df141fd456401b14a31621652fa2052ca7b45e6beff327b2ea7d1e0b17d01a678e779fee3afb35667164afc647bfcc1db36ee8a41f2d
6
+ metadata.gz: c461903fa92252cd705650cff061dec93374bfe0f940721269a1e1684b630ac742ce187be1eed42b2a56be9427ad097da1753b43b538b157d04e57628d20d5ed
7
+ data.tar.gz: 506d59a863255d75aa10192250f2c67e14e0dcece26d60573cb0093c08f5c4f5ae6e11a5947d330023107243905fa7e5db16dce74ac223cea0f554f8394235ab
data/.gitignore CHANGED
@@ -10,3 +10,5 @@ doc/*
10
10
  tmp/*
11
11
  coverage
12
12
  .yardoc
13
+ .ruby-version
14
+ pkg/*
@@ -1,3 +1,15 @@
1
+ ## 0.3.1 (2013/11/02)
2
+
3
+ Changes
4
+
5
+ - Revert 0.3.0. `string-scrub` gem is only for >= ruby 2.0.
6
+
7
+ ## 0.3.0 (2013/11/02)
8
+
9
+ Changes
10
+
11
+ - Use String#scrub
12
+
1
13
  ## 0.2.0 (2013/09/26)
2
14
 
3
15
  Features
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
- Another example of grepcounter configuration to use `output_with_joined_delimiter`:
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
- - less\_than (from 0.2.0)
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
- A `greater than` threshold value, that is, emit if `count` value > specified value.
93
+ Emit if `count` value is greater than (>) specified value.
94
+
95
+ - less\_than (from 0.2.0)
95
96
 
96
- - greater\_equal (from 0.2.0)
97
+ Emit if `count` value is less than (<) specified value.
98
+
99
+ - less\_equal (from 0.2.0)
97
100
 
98
- A `greater than or eqaul` threshold value, that is, emit if `count` value >= specified value. Same with `threshold` option.
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.2.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 = "Count the number of matched messages"
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.2.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-09-26 00:00:00.000000000 Z
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: Count the number of matched messages
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: Count the number of matched messages
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