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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50322615e57fb76d6fa066679801afe3f26e1234
|
4
|
+
data.tar.gz: 62367f86bdc560237c8c0950c4fb339e6c6fb5bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f11ae421689ae36db0f9d47c5474c2948502faf9ce3d6fb599511b41b3d4ad3e90d1b36f06244245c2279b917fee808095ce5f885bc9e46b634c908347eb8242
|
7
|
+
data.tar.gz: d82464a17e0b389795e0fdc0bc0ee3a5330d03654172cc9cf3790030c4d442257a784e719eef2dd75fc2c51498563bf8b71fe518deb27fef1f0e06ced88477f4
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -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.
|
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,
|
10
|
-
config_param :mask,
|
11
|
-
config_param :use_log_time,
|
12
|
-
config_param :include_hash,
|
13
|
-
config_param :salt,
|
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}"
|
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.
|
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:
|
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.
|
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.
|
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.
|
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.
|