fluent-plugin-filter-parse-postfix 0.1.1 → 0.1.2

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: efc79613f5a882847264ca3bf9445d2211a9058e
4
- data.tar.gz: 85f3fde9dd2bbf00d2cadb2879dd6494110ca556
3
+ metadata.gz: 3b278ad9f0f1b093760418b604e4c2bb50410da9
4
+ data.tar.gz: 7ffb9eb8f81ab662c09f2461aac7a3eeb764756f
5
5
  SHA512:
6
- metadata.gz: 5ee0622bf7d8b6d1c39f63bf9e94e0f3e4b985dce2afa585edf6fd15f89b25a8db1934bb0134e7a928823dfc5927d4b68c1d44412f81ac5ee7e69da96880324e
7
- data.tar.gz: 31276d7a58efd3945cd6064364269231254d4c932536344ccbcf534419b8f6677e8ce67ff0f2a228ffba21c25d6727633c310af20b00982820e2e82544a36cbe
6
+ metadata.gz: 0a05fced676eba05a5f7f0c3e096c98d15e7656f48b7b36a00f0b75b8ddb45dfacf1898ddf383213b1b75f9c054697d7176b8288ae598b5bcb9988bf3803a6e0
7
+ data.tar.gz: 83b96182409c865623c7c994cd8a11dc94d9231df9955c49e809ac5dd64c6607b47e6902a457bfa4e59f6c77a56ef6f9435eb2a16c5ef8cb86a8c3611190cfa3
@@ -27,10 +27,14 @@ module Fluent
27
27
  line = record[@key]
28
28
  return unless line
29
29
 
30
- line = PostfixStatusLine.parse(line, @mask)
31
- return unless line
30
+ parsed = PostfixStatusLine.parse(line, @mask)
31
+
32
+ unless parsed
33
+ log.warn "could not parse postfix log: #{line}"
34
+ return
35
+ end
32
36
 
33
- result_es.add(time, line)
37
+ result_es.add(time, parsed)
34
38
  end
35
39
  end
36
40
  end
@@ -1,3 +1,3 @@
1
1
  module FluentPluginFilterParsePostfix
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara