fluent-plugin-filter-parse-postfix 0.2.3 → 0.2.4

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: 05a9b7bd8449cc7119888e96e8e41a537e8065c1
4
- data.tar.gz: c933fa65530e9daaec5ed9005907a5d75fa450ef
3
+ metadata.gz: 50322615e57fb76d6fa066679801afe3f26e1234
4
+ data.tar.gz: 62367f86bdc560237c8c0950c4fb339e6c6fb5bf
5
5
  SHA512:
6
- metadata.gz: e09ebfb09bf5b61e92ba31e41ae3d5226342d950c6798d5ff5facd226b4f54e5ae3f2812d9dc79cbaea65adea09efb5bd560b4683ce16c0f6eebcce6ed092e85
7
- data.tar.gz: 6cea4a1763046d32c37c5ca0c1235370f2ac25815ba96f75b3ab0ca4886ef54ed076090695bc5fb9951d8d0e17c55e47e232baadc1c6c30b50be8d8c171fb17b
6
+ metadata.gz: f11ae421689ae36db0f9d47c5474c2948502faf9ce3d6fb599511b41b3d4ad3e90d1b36f06244245c2279b917fee808095ce5f885bc9e46b634c908347eb8242
7
+ data.tar.gz: d82464a17e0b389795e0fdc0bc0ee3a5330d03654172cc9cf3790030c4d442257a784e719eef2dd75fc2c51498563bf8b71fe518deb27fef1f0e06ced88477f4
data/.travis.yml CHANGED
@@ -1,10 +1,9 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  rvm:
3
- - 2.0.0
4
- rvm:
5
- - 2.0.0
6
4
  - 2.1
7
5
  - 2.2
6
+ - 2.3.3
8
7
  script:
9
8
  - bundle install
10
9
  - bundle exec rake
data/README.md CHANGED
@@ -30,6 +30,7 @@ Or install it yourself as:
30
30
  #use_log_time false
31
31
  #include_hash false
32
32
  #salt my_salt
33
+ #sha_algorithm 512 # 1, 224, 256, 384, 512 (default)
33
34
  </filter>
34
35
  ```
35
36
 
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_dependency 'fluentd', '>= 0.12'
23
- spec.add_dependency 'postfix_status_line', '~> 0.2.3'
23
+ spec.add_dependency 'postfix_status_line', '~> 0.2.5'
24
24
 
25
25
  spec.add_development_dependency 'bundler'
26
26
  spec.add_development_dependency 'rake'
@@ -6,11 +6,12 @@ module Fluent
6
6
  class ParsePostfixFilter < Filter
7
7
  Plugin.register_filter('parse_postfix', self)
8
8
 
9
- config_param :key, :string, :default => 'message'
10
- config_param :mask, :bool, :default => true
11
- config_param :use_log_time, :bool, :default => false
12
- config_param :include_hash, :bool, :default => false
13
- config_param :salt, :string, :default => nil
9
+ config_param :key, :string, :default => 'message'
10
+ config_param :mask, :bool, :default => true
11
+ config_param :use_log_time, :bool, :default => false
12
+ config_param :include_hash, :bool, :default => false
13
+ config_param :salt, :string, :default => nil
14
+ config_param :sha_algorithm, :integer, :default => nil
14
15
 
15
16
  def filter_stream(tag, es)
16
17
  result_es = Fluent::MultiEventStream.new
@@ -30,7 +31,7 @@ module Fluent
30
31
 
31
32
  parsed = PostfixStatusLine.parse(
32
33
  line,
33
- mask: @mask, hash: @include_hash, salt: @salt, parse_time: @use_log_time)
34
+ mask: @mask, hash: @include_hash, salt: @salt, parse_time: @use_log_time, sha_algorithm: @sha_algorithm)
34
35
 
35
36
  unless parsed
36
37
  log.warn "cannot parse a postfix log: #{line}"
@@ -1,3 +1,3 @@
1
1
  module FluentPluginFilterParsePostfix
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-filter-parse-postfix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-27 00:00:00.000000000 Z
11
+ date: 2017-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.3
33
+ version: 0.2.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.2.3
40
+ version: 0.2.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.4.5.1
150
+ rubygems_version: 2.5.2
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Filter Plugin to parse Postfix status line log.