fluent-plugin-filter-parse-postfix 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -2
- data/fluent-plugin-filter-parse-postfix.gemspec +1 -1
- data/lib/fluent_plugin_filter_parse_postfix/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efc79613f5a882847264ca3bf9445d2211a9058e
|
4
|
+
data.tar.gz: 85f3fde9dd2bbf00d2cadb2879dd6494110ca556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ee0622bf7d8b6d1c39f63bf9e94e0f3e4b985dce2afa585edf6fd15f89b25a8db1934bb0134e7a928823dfc5927d4b68c1d44412f81ac5ee7e69da96880324e
|
7
|
+
data.tar.gz: 31276d7a58efd3945cd6064364269231254d4c932536344ccbcf534419b8f6677e8ce67ff0f2a228ffba21c25d6727633c310af20b00982820e2e82544a36cbe
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
```apache
|
26
26
|
<filter>
|
27
|
-
type
|
27
|
+
@type parse_postfix
|
28
28
|
#key message
|
29
29
|
#mask true
|
30
30
|
</filter>
|
@@ -51,5 +51,26 @@ $ fluentd -c fluent.conf
|
|
51
51
|
|
52
52
|
```sh
|
53
53
|
$ echo '{"message":"Feb 27 09:02:38 MyHOSTNAME postfix/smtp[26490]: 5E31727A35D: to=<bellsouth@myemail.net>, relay=gateway-f1.isp.att.net[204.127.217.17]:25, delay=0.58, delays=0.11/0.03/0.23/0.20, dsn=2.0.0, status=sent (250 ok ; id=en4req0070M63004172202102)"}' | fluent-cat test.test
|
54
|
-
#=> 2015-12-22 02:02:22 +0900 test.test: {"time":"Feb 27 09:02:38","hostname":"MyHOSTNAME","process":"postfix/smtp[26490]","queue_id":"5E31727A35D","to":"<*********@myemail.net>","relay":"gateway-f1.isp.att.net[204.127.217.17]:25","delay":0.58,"delays":"0.11/0.03/0.23/0.20","dsn":"2.0.0","status":"sent
|
54
|
+
#=> 2015-12-22 02:02:22 +0900 test.test: {"time":"Feb 27 09:02:38","hostname":"MyHOSTNAME","process":"postfix/smtp[26490]","queue_id":"5E31727A35D","to":"<*********@myemail.net>","domain":"myemail.net","relay":"gateway-f1.isp.att.net[204.127.217.17]:25","delay":0.58,"delays":"0.11/0.03/0.23/0.20","dsn":"2.0.0","status":"sent","status_detail":"(250 ok ; id=en4req0070M63004172202102)"}
|
55
|
+
```
|
56
|
+
|
57
|
+
## Output
|
58
|
+
|
59
|
+
see https://github.com/winebarrel/postfix_status_line
|
60
|
+
|
61
|
+
```json
|
62
|
+
{
|
63
|
+
"time":"Feb 27 09:02:38",
|
64
|
+
"hostname":"MyHOSTNAME",
|
65
|
+
"process":"postfix/smtp[26490]",
|
66
|
+
"queue_id":"5E31727A35D",
|
67
|
+
"to":"<*********@myemail.net>",
|
68
|
+
"domain":"myemail.net",
|
69
|
+
"relay":"gateway-f1.isp.att.net[204.127.217.17]:25",
|
70
|
+
"delay":0.58,
|
71
|
+
"delays":"0.11/0.03/0.23/0.20",
|
72
|
+
"dsn":"2.0.0",
|
73
|
+
"status":"sent",
|
74
|
+
"status_detail":"(250 ok ; id=en4req0070M63004172202102)"
|
75
|
+
}
|
55
76
|
```
|
@@ -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'
|
23
|
+
spec.add_dependency 'postfix_status_line', '>= 0.1.4'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler'
|
26
26
|
spec.add_development_dependency 'rake'
|
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.1.
|
4
|
+
version: 0.1.1
|
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-
|
11
|
+
date: 2015-12-22 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:
|
33
|
+
version: 0.1.4
|
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:
|
40
|
+
version: 0.1.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|