fluent-plugin-filter-list 0.2.0 → 0.2.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: 52c5a00e64374a2b7299e3f279b6cf70ead7af0e
4
- data.tar.gz: c1b067e9b9319c1bfc71371f91b3fa3b7af1a3d4
3
+ metadata.gz: c0ca7201c3b19c329300cacaaebcf63e22eb0f9e
4
+ data.tar.gz: 0f68e79ac937846b90f3bd3112d14ed497855b81
5
5
  SHA512:
6
- metadata.gz: ffce82c944c72031923e98c2ad22d86653b16397f74b481a686290bcfe81c2ebcf50e16274553f65a09c25beb6acc1282898edc1e215e8619abd8d6f882cc6c6
7
- data.tar.gz: 31cef37f016b9fb187fa202a2e022d52f7bc79816737d6215c2e6a5648051882c8a3bef51a2ff3ea347a2ebecfc1c37e853a99daa1beb26afda6b6b90065e2be
6
+ metadata.gz: ebd5661935b0c935536eed16a178c5025d103c5e1763b45a6e38461560599053bbddf287120541af154dfbc141cdf620fa6f8ead72cccda56741f5f7dd3ca341
7
+ data.tar.gz: f032bd4fda10f499fdd0bbe022011694b0274b999b98931be94e7b6d57bf740167b5561febb18957b70675844888fc7ea46f240702f260eec35e524308393cba
data/README.md CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/yanana/fluent-plugin-filter-list.svg?branch=master)](https://travis-ci.org/yanana/fluent-plugin-filter-list)
4
4
 
5
- This is a plugin to filter for [Fluentd](http://fluentd.org/) v0.12.0.
5
+ [Fluentd](http://fluentd.org/) output plugin that filters messages whose value of specified field matches values in a list of patterns (like agrep). This plugin not only filters messages and discards them but also provides the feature to retag filtered records.
6
6
 
7
7
  ## Installation
8
8
 
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'fluent-plugin-out_filter_list'
12
+ gem 'fluent-plugin-filter-list'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,11 +18,25 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install fluent-plugin-out_filter_list
21
+ $ gem install fluent-plugin-filter-list
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ```
26
+ <match your_tag>
27
+ @type filter_list
28
+
29
+ key_to_filter field_name_you_want_to_filter
30
+ patterns_file_path file_including_patterns_separated_by_new_line
31
+
32
+ <retag>
33
+ add_prefix x # retag non-filtered messages whose tag will be "x.your_tag"
34
+ </retag>
35
+ <retag_filtered>
36
+ tag y # simply retag filtered (matched) messages with "y"
37
+ </retag_filtered>
38
+ </match>
39
+ ```
26
40
 
27
41
 
28
42
  ## Development
@@ -33,12 +47,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
33
47
 
34
48
  ## Contributing
35
49
 
36
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fluent-plugin-out_filter_list. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
50
+ Bug reports and pull requests are welcome on GitHub at https://github.com/yanana/fluent-plugin-filter-list. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
51
 
38
52
  ## License
39
53
 
40
54
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
42
- ## Code of Conduct
43
-
44
- Everyone interacting in the Fluent::Plugin::OutFilterList project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fluent-plugin-out_filter_list/blob/master/CODE_OF_CONDUCT.md).
@@ -5,7 +5,7 @@ require "fluent/plugin/out_filter_list/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fluent-plugin-filter-list"
8
- spec.version = Fluent::Plugin::OutFilterList::VERSION
8
+ spec.version = Fluent::OutFilterList::VERSION
9
9
  spec.authors = ["Shun Yanaura"]
10
10
  spec.email = ["metroplexity@gmail.com"]
11
11
 
@@ -1,7 +1,5 @@
1
1
  module Fluent
2
- module Plugin
3
- module OutFilterList
4
- VERSION = "0.2.0"
5
- end
2
+ module OutFilterList
3
+ VERSION = "0.2.1"
6
4
  end
7
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-filter-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shun Yanaura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.6.11
129
+ rubygems_version: 2.6.12
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: A fluentd output plugin to filter keywords from messages